stream frames are 64-bit
This commit is contained in:
@@ -410,8 +410,7 @@ bool RageSound::GetDataToPlay( int16_t *pBuffer, int iFrames, int &iStreamFrame,
|
||||
}
|
||||
|
||||
/* Indicate that a block of audio data has been written to the device. */
|
||||
// XXX: pos should be int64_t
|
||||
void RageSound::CommitPlayingPosition( int64_t frameno, int pos, int iGotFrames )
|
||||
void RageSound::CommitPlayingPosition( int64_t frameno, int64_t pos, int iGotFrames )
|
||||
{
|
||||
m_Mutex.Lock();
|
||||
m_HardwareToStreamMap.Insert( frameno, iGotFrames, pos );
|
||||
|
||||
@@ -193,7 +193,7 @@ public:
|
||||
* is still playing. */
|
||||
int GetPCM( char *pBuffer, int iSize, int64_t iFrameno );
|
||||
bool GetDataToPlay( int16_t *pBuffer, int iSize, int &iPosition, int &iBytesRead );
|
||||
void CommitPlayingPosition( int64_t iFrameno, int iPosition, int iBytesRead );
|
||||
void CommitPlayingPosition( int64_t iFrameno, int64_t iPosition, int iBytesRead );
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -183,7 +183,7 @@ int RageSoundManager::GetUniqueID()
|
||||
return ++iID;
|
||||
}
|
||||
|
||||
void RageSoundManager::CommitPlayingPosition( int ID, int64_t frameno, int pos, int got_frames )
|
||||
void RageSoundManager::CommitPlayingPosition( int ID, int64_t frameno, int64_t pos, int got_frames )
|
||||
{
|
||||
/* This can be called from realtime threads; don't lock any mutexes. */
|
||||
queued_pos_map_t p;
|
||||
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
void RegisterSound( RageSound *p ); /* used by RageSound */
|
||||
void UnregisterSound( RageSound *p ); /* used by RageSound */
|
||||
int GetUniqueID(); /* used by RageSound */
|
||||
void CommitPlayingPosition( int ID, int64_t frameno, int pos, int got_bytes ); /* used by drivers */
|
||||
void CommitPlayingPosition( int ID, int64_t frameno, int64_t pos, int got_bytes ); /* used by drivers */
|
||||
float GetPlayLatency() const;
|
||||
int GetDriverSampleRate( int iRate ) const;
|
||||
|
||||
@@ -76,8 +76,9 @@ private:
|
||||
|
||||
struct queued_pos_map_t
|
||||
{
|
||||
int ID, pos, got_frames;
|
||||
int ID, got_frames;
|
||||
int64_t frameno;
|
||||
int64_t pos;
|
||||
};
|
||||
|
||||
CircBuf<queued_pos_map_t> pos_map_queue;
|
||||
|
||||
Reference in New Issue
Block a user