projects
/
rtaudio-cdist.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1bd87e
)
Fix conversion between different format types in resampler
author
Marcus Tomlinson
<themarcustomlinson@gmail.com>
Sun, 15 Apr 2018 07:40:48 +0000
(09:40 +0200)
committer
Marcus Tomlinson
<marcustomlinson@MacBook-Air.local>
Wed, 22 Aug 2018 08:29:12 +0000
(09:29 +0100)
RtAudio.cpp
patch
|
blob
|
history
diff --git
a/RtAudio.cpp
b/RtAudio.cpp
index 1bde9f8e5c57786797c79ef1350492562608ddb5..36bebd406333c515a344761acf4daa0bc325b489 100644
(file)
--- 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,