CommitPosition -> Insert

This commit is contained in:
Glenn Maynard
2006-11-30 01:47:51 +00:00
parent a66bc2c949
commit 115bad2017
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -527,7 +527,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.CommitPosition( frameno, pos, iGotFrames ); m_PositionMapping.Insert( frameno, pos, iGotFrames );
m_Mutex.Unlock(); m_Mutex.Unlock();
} }
+1 -1
View File
@@ -54,7 +54,7 @@ pos_map_queue &pos_map_queue::operator=( const pos_map_queue &rhs )
return *this; return *this;
} }
void pos_map_queue::CommitPosition( int64_t iSourceFrame, int iDestFrame, int iFrames ) void pos_map_queue::Insert( int64_t iSourceFrame, int iDestFrame, int iFrames )
{ {
if( m_pImpl->m_Queue.size() ) if( m_pImpl->m_Queue.size() )
{ {
+1 -1
View File
@@ -13,7 +13,7 @@ public:
pos_map_queue &operator=( const pos_map_queue &rhs ); pos_map_queue &operator=( const pos_map_queue &rhs );
/* Insert a mapping from iSourceFrame to iDestFrame, containing iFrames. */ /* Insert a mapping from iSourceFrame to iDestFrame, containing iFrames. */
void CommitPosition( int64_t iSourceFrame, int iDestFrame, int iFrames ); void Insert( int64_t iSourceFrame, int iDestFrame, int iFrames );
/* Return the iDestFrame for the given iSourceFrame. */ /* Return the iDestFrame for the given iSourceFrame. */
int64_t Search( int64_t iSourceFrame, bool *bApproximate ) const; int64_t Search( int64_t iSourceFrame, bool *bApproximate ) const;