Commit 78a73eac authored by Max Kellermann's avatar Max Kellermann

pcm/Export: add (dummy) method Cancel()

We'll have some code for it soon.
parent 533cb99c
......@@ -826,6 +826,8 @@ AlsaOutput::Cancel()
must_prepare = true;
snd_pcm_drop(pcm);
pcm_export->Reset();
}
inline void
......
......@@ -659,6 +659,10 @@ OssOutput::Cancel()
ioctl(fd, SNDCTL_DSP_RESET, 0);
DoClose();
}
#ifdef AFMT_S24_PACKED
pcm_export->Reset();
#endif
}
inline size_t
......
......@@ -150,6 +150,12 @@ struct PcmExport {
Params params);
/**
* Reset the filter's state, e.g. drop/flush buffers.
*/
void Reset() {
}
/**
* Calculate the size of one output frame.
*/
gcc_pure
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment