Mercurial > hg > svapp
diff audio/AudioCallbackPlaySource.h @ 553:2a1e9e017484 bqresample
Fixes to sample rate and latency handling
author | Chris Cannam |
---|---|
date | Fri, 09 Dec 2016 14:40:49 +0000 |
parents | 8c11ca1ebc39 |
children | 206d65e2b69a |
line wrap: on
line diff
--- a/audio/AudioCallbackPlaySource.h Fri Dec 09 13:46:34 2016 +0000 +++ b/audio/AudioCallbackPlaySource.h Fri Dec 09 14:40:49 2016 +0000 @@ -145,7 +145,7 @@ /** * Set the playback latency of the target audio device, in frames - * at the target sample rate. This is the difference between the + * at the device sample rate. This is the difference between the * frame currently "leaving the speakers" and the last frame (or * highest last frame across all channels) requested via * getSamples(). The default is zero. @@ -170,7 +170,7 @@ * Return the sample rate set by the target audio device (or the * source sample rate if the target hasn't set one). */ - virtual sv_samplerate_t getTargetSampleRate() const; + sv_samplerate_t getDeviceSampleRate() const; /** * Indicate how many channels the target audio device was opened @@ -335,7 +335,7 @@ int m_sourceChannelCount; sv_frame_t m_blockSize; sv_samplerate_t m_sourceSampleRate; - sv_samplerate_t m_targetSampleRate; + sv_samplerate_t m_deviceSampleRate; sv_frame_t m_playLatency; breakfastquay::SystemPlaybackTarget *m_target; double m_lastRetrievalTimestamp;