Skip to content

Commit

Permalink
we're so back
Browse files Browse the repository at this point in the history
  • Loading branch information
ieee802dot11ac committed Jun 8, 2024
1 parent c6e5922 commit 9baa5b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/system/meta/StreamPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void StreamPlayer::Delete(){
delete mStream;
mStream = 0;
if(mSongBuf && mSongBuf){
delete mSongBuf;
_MemFree(mSongBuf);
mSongBuf = 0;
}
}
Expand Down Expand Up @@ -63,7 +63,7 @@ void StreamPlayer::Init(){
}
else mStream->SetPan(0, 0.0f);
if(mLoop){
mStream->SetJump(kStreamEndMs, 0.0f, 0);
mStream->SetJump(Stream::kStreamEndMs, 0.0f, 0);
}
}

Expand Down
13 changes: 7 additions & 6 deletions src/system/meta/StreamPlayer.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef META_STREAMPLAYER_H
#define META_STREAMPLAYER_H
#include "obj/Object.h"

class Stream;
#include "synth/Stream.h"
#include "utl/MemMgr.h"

class StreamPlayer : public Hmx::Object {
public:
Expand All @@ -17,8 +17,8 @@ class StreamPlayer : public Hmx::Object {
void StopPlaying();
void SetMasterVolume(float);

static float kStreamEndMs;
static int kStreamEndSamples;
// static float kStreamEndMs;
// static int kStreamEndSamples;

float mMasterVol;
float mStreamVol;
Expand All @@ -27,9 +27,10 @@ class StreamPlayer : public Hmx::Object {
bool mPaused;
Stream* mStream;
void* mSongBuf;

};

float StreamPlayer::kStreamEndMs = -1.1920929E-7f;
int StreamPlayer::kStreamEndSamples = -1;
// float StreamPlayer::kStreamEndMs = -1.1920929E-7f;
// int StreamPlayer::kStreamEndSamples = -1;

#endif

0 comments on commit 9baa5b3

Please sign in to comment.