diff options
author | Paul Adenot <[email protected]> | 2016-03-07 15:27:21 +0100 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2016-03-07 15:27:21 +0100 |
commit | 3f98f2815722186d5e4b0927baf7a607f3650fa8 (patch) | |
tree | 5ee46dcd302f87abbd9f8bc2efa2b93b33265103 /src/cubeb_resampler_internal.h | |
parent | 414888142db2865b43d4150ce2ffd76258c34055 (diff) | |
download | cubeb-3f98f2815722186d5e4b0927baf7a607f3650fa8.tar.gz cubeb-3f98f2815722186d5e4b0927baf7a607f3650fa8.zip |
Implement draining in resamplers.
What can happen is that when the client attempt to start draining, there is
still some audio in the internal resampler buffer (because of the resampler
latency and the resampler safety margin), so we account for that, and we make
sure all the samples are output to the system API so that we don't cut the end
of the audio stream.
Diffstat (limited to 'src/cubeb_resampler_internal.h')
-rw-r--r-- | src/cubeb_resampler_internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cubeb_resampler_internal.h b/src/cubeb_resampler_internal.h index 8bfade5..c845d91 100644 --- a/src/cubeb_resampler_internal.h +++ b/src/cubeb_resampler_internal.h @@ -132,6 +132,7 @@ private: cubeb_stream * const stream; const cubeb_data_callback data_callback; void * const user_ptr; + bool draining; }; /** Handles one way of a (possibly) duplex resampler, working on interleaved |