Insert -> CommitPosition
This commit is contained in:
@@ -529,7 +529,7 @@ bool RageSound::GetDataToPlay( int16_t *pBuffer, int iFrames, int &iSoundFrame,
|
|||||||
void RageSound::CommitPlayingPosition( int64_t frameno, int pos, int iGotFrames )
|
void RageSound::CommitPlayingPosition( int64_t frameno, int pos, int iGotFrames )
|
||||||
{
|
{
|
||||||
m_Mutex.Lock();
|
m_Mutex.Lock();
|
||||||
m_PositionMapping.Insert( frameno, pos, iGotFrames );
|
m_PositionMapping.CommitPosition( frameno, pos, iGotFrames );
|
||||||
m_Mutex.Unlock();
|
m_Mutex.Unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ pos_map_queue::pos_map_queue( const pos_map_queue &cpy )
|
|||||||
*this = cpy;
|
*this = cpy;
|
||||||
}
|
}
|
||||||
|
|
||||||
void pos_map_queue::Insert( int64_t iFrame, int iPosition, int iGotFrames )
|
void pos_map_queue::CommitPosition( int64_t iFrame, int iPosition, int iGotFrames )
|
||||||
{
|
{
|
||||||
if( m_Queue.size() )
|
if( m_Queue.size() )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ public:
|
|||||||
pos_map_queue();
|
pos_map_queue();
|
||||||
pos_map_queue( const pos_map_queue &cpy );
|
pos_map_queue( const pos_map_queue &cpy );
|
||||||
|
|
||||||
/* Insert a mapping from iFrame to iPosition, containing pos iGotFrames. */
|
/* Insert a mapping from iHardwareFrame to iStreamFrame, containing pos iGotFrames. */
|
||||||
void Insert( int64_t iFrame, int iPosition, int iGotFrames );
|
void CommitPosition( int64_t iHardwareFrame, int iStreamFrame, int iGotFrames );
|
||||||
|
|
||||||
/* Return the position for the given iFrame. */
|
/* Return the position for the given iFrame. */
|
||||||
int64_t Search( int64_t iFrame, bool *bApproximate ) const;
|
int64_t Search( int64_t iFrame, bool *bApproximate ) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user