summaryrefslogtreecommitdiff
path: root/RtAudio.cpp
diff options
context:
space:
mode:
authorgaryscavone <garyscavone@users.noreply.github.com>2019-05-16 09:45:03 -0400
committerGitHub <noreply@github.com>2019-05-16 09:45:03 -0400
commit6bbbed77c911add7ab3bec143351053f03493366 (patch)
tree123f9d7555f4009c569a6ba13c4840356f50aa92 /RtAudio.cpp
parentd27f257b4bc827e4152cdc4d69a2e22084204afd (diff)
parenta3af2b6e81cfbe24fe2b949ef282a888baf26f40 (diff)
Merge pull request #203 from thestk/fix-pulseauio-non-interleaved
Fix PulseAudio non-interleaved user streams
Diffstat (limited to 'RtAudio.cpp')
-rw-r--r--RtAudio.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp
index 0837d98..2ebf61a 100644
--- a/RtAudio.cpp
+++ b/RtAudio.cpp
@@ -8796,6 +8796,8 @@ bool RtApiPulse::probeDeviceOpen( unsigned int device, StreamMode mode,
stream_.doConvertBuffer[mode] = true;
if ( stream_.nUserChannels[mode] < stream_.nDeviceChannels[mode] )
stream_.doConvertBuffer[mode] = true;
+ if ( stream_.userInterleaved != stream_.deviceInterleaved[mode] )
+ stream_.doConvertBuffer[mode] = true;
// Allocate necessary internal buffers.
bufferBytes = stream_.nUserChannels[mode] * *bufferSize * formatBytes( stream_.userFormat );