pcm/Convert: add method Reset()
This commit is contained in:
parent
3dcb082015
commit
8088469eca
@ -117,6 +117,17 @@ PcmConvert::Close()
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
PcmConvert::Reset()
|
||||
{
|
||||
if (enable_resampler)
|
||||
resampler.Reset();
|
||||
|
||||
#ifdef ENABLE_DSD
|
||||
dsd.Reset();
|
||||
#endif
|
||||
}
|
||||
|
||||
ConstBuffer<void>
|
||||
PcmConvert::Convert(ConstBuffer<void> buffer)
|
||||
{
|
||||
|
@ -67,6 +67,11 @@ public:
|
||||
*/
|
||||
void Close();
|
||||
|
||||
/**
|
||||
* Reset the filter's state, e.g. drop/flush buffers.
|
||||
*/
|
||||
void Reset();
|
||||
|
||||
/**
|
||||
* Converts PCM data between two audio formats.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user