Insert -> CommitPosition

This commit is contained in:
Glenn Maynard
2006-11-26 18:44:06 +00:00
parent d5e7260f59
commit e2923274f4
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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();
} }
+1 -1
View File
@@ -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() )
{ {
+2 -2
View File
@@ -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;