pcm/Export: add (dummy) method Cancel()
We'll have some code for it soon.
This commit is contained in:
parent
533cb99c33
commit
78a73eac53
@ -826,6 +826,8 @@ AlsaOutput::Cancel()
|
|||||||
must_prepare = true;
|
must_prepare = true;
|
||||||
|
|
||||||
snd_pcm_drop(pcm);
|
snd_pcm_drop(pcm);
|
||||||
|
|
||||||
|
pcm_export->Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void
|
inline void
|
||||||
|
@ -659,6 +659,10 @@ OssOutput::Cancel()
|
|||||||
ioctl(fd, SNDCTL_DSP_RESET, 0);
|
ioctl(fd, SNDCTL_DSP_RESET, 0);
|
||||||
DoClose();
|
DoClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef AFMT_S24_PACKED
|
||||||
|
pcm_export->Reset();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
inline size_t
|
inline size_t
|
||||||
|
@ -149,6 +149,12 @@ struct PcmExport {
|
|||||||
void Open(SampleFormat sample_format, unsigned channels,
|
void Open(SampleFormat sample_format, unsigned channels,
|
||||||
Params params);
|
Params params);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reset the filter's state, e.g. drop/flush buffers.
|
||||||
|
*/
|
||||||
|
void Reset() {
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculate the size of one output frame.
|
* Calculate the size of one output frame.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user