diff options
| author | Marcus Tomlinson <themarcustomlinson@gmail.com> | 2018-04-15 09:40:48 +0200 |
|---|---|---|
| committer | Marcus Tomlinson <marcustomlinson@MacBook-Air.local> | 2018-08-22 09:29:12 +0100 |
| commit | ebf50fc3e48b908c491af4218e113d05b5f0f3eb (patch) | |
| tree | b95583a9f63015a94019a7a3cb9fcce7400eeb2c /RtAudio.cpp | |
| parent | f1bd87ebeafff94f3e7a1b717a821e6dba9c2bcd (diff) | |
Fix conversion between different format types in resampler
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index 1bde9f8..36bebd4 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -5098,7 +5098,7 @@ void RtApiWasapi::wasapiThread() } // Convert callback buffer to user sample rate - unsigned int deviceBufferOffset = convBufferSize * stream_.nDeviceChannels[INPUT] * formatBytes( stream_.userFormat ); + unsigned int deviceBufferOffset = convBufferSize * stream_.nDeviceChannels[INPUT] * formatBytes( stream_.deviceFormat[INPUT] ); unsigned int convSamples = 0; captureResampler->Convert( stream_.deviceBuffer + deviceBufferOffset, |
