diff options
| author | Marcus Tomlinson <themarcustomlinson@gmail.com> | 2017-12-23 11:28:25 +0200 |
|---|---|---|
| committer | Marcus Tomlinson <marcustomlinson@MacBook-Air.local> | 2018-08-22 09:29:11 +0100 |
| commit | fe5acf0320a836220a5f3e6bf2b3a598859509e5 (patch) | |
| tree | 1d972d68c2fc7c75d0219c2ed6113a88d57042f5 /RtAudio.cpp | |
| parent | 91f3e583468d20bf0c18583b23ff307cb4061f2d (diff) | |
Fix setting stream_.doConvertBuffer[mode]
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index 7b2f907..452ee32 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -4739,7 +4739,8 @@ bool RtApiWasapi::probeDeviceOpen( unsigned int device, StreamMode mode, unsigne // Set flags for buffer conversion. stream_.doConvertBuffer[mode] = false; if ( stream_.userFormat != stream_.deviceFormat[mode] || - stream_.nUserChannels != stream_.nDeviceChannels ) + stream_.nUserChannels[0] != stream_.nDeviceChannels[0] || + stream_.nUserChannels[1] != stream_.nDeviceChannels[1] ) stream_.doConvertBuffer[mode] = true; else if ( stream_.userInterleaved != stream_.deviceInterleaved[mode] && stream_.nUserChannels[mode] > 1 ) |
