Add MixDeinterlaced to RageSoundDriver
This complements the read_deinterlace function just added.
This commit is contained in:
@@ -94,6 +94,8 @@ protected:
|
||||
void Mix( int16_t *pBuf, int iFrames, int64_t iFrameNumber, int64_t iCurrentFrame );
|
||||
void Mix( float *pBuf, int iFrames, int64_t iFrameNumber, int64_t iCurrentFrame );
|
||||
|
||||
void MixDeinterlaced( float **pBufs, int channels, int iFrames, int64_t iFrameNumber, int64_t iCurrentFrame );
|
||||
|
||||
private:
|
||||
/* This mutex is used for serializing with the decoder thread. Locking this mutex
|
||||
* can take a while. */
|
||||
|
||||
@@ -170,6 +170,13 @@ void RageSoundDriver::Mix( float *pBuf, int iFrames, int64_t iFrameNumber, int64
|
||||
MixIntoBuffer( iFrames, iFrameNumber, iCurrentFrame ).read( pBuf );
|
||||
}
|
||||
|
||||
void RageSoundDriver::MixDeinterlaced( float **pBufs, int channels, int iFrames, int64_t iFrameNumber, int64_t iCurrentFrame )
|
||||
{
|
||||
for (int i = 0; i < channels; ++i )
|
||||
memset( pBufs[i], 0, iFrames*sizeof(float) );
|
||||
MixIntoBuffer( iFrames, iFrameNumber, iCurrentFrame ).read_deinterlace( pBufs, channels );
|
||||
}
|
||||
|
||||
void RageSoundDriver::DecodeThread()
|
||||
{
|
||||
SetupDecodingThread();
|
||||
|
||||
Reference in New Issue
Block a user