projects
/
rtaudio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix WASAPI channel offset
[rtaudio.git]
/
RtAudio.cpp
diff --git
a/RtAudio.cpp
b/RtAudio.cpp
index 33ae87b08f63cb0d55a42ca871b209de770051ef..e7c3ad12cce4542e6aa5663c7feaae279ba92cac 100644
(file)
--- a/
RtAudio.cpp
+++ b/
RtAudio.cpp
@@
-7,10
+7,11
@@
and OSS), Macintosh OS X (CoreAudio and Jack), and Windows
(DirectSound, ASIO and WASAPI) operating systems.
and OSS), Macintosh OS X (CoreAudio and Jack), and Windows
(DirectSound, ASIO and WASAPI) operating systems.
+ RtAudio GitHub site: https://github.com/thestk/rtaudio
RtAudio WWW site: http://www.music.mcgill.ca/~gary/rtaudio/
RtAudio: realtime audio i/o C++ classes
RtAudio WWW site: http://www.music.mcgill.ca/~gary/rtaudio/
RtAudio: realtime audio i/o C++ classes
- Copyright (c) 2001-201
7
Gary P. Scavone
+ Copyright (c) 2001-201
9
Gary P. Scavone
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
@@
-38,7
+39,7
@@
*/
/************************************************************************/
*/
/************************************************************************/
-// RtAudio: Version 5.
0
.0
+// RtAudio: Version 5.
1
.0
#include "RtAudio.h"
#include <iostream>
#include "RtAudio.h"
#include <iostream>
@@
-4848,7
+4849,7
@@
bool RtApiWasapi::probeDeviceOpen( unsigned int device, StreamMode mode, unsigne
stream_.doConvertBuffer[mode] = true;
if ( stream_.doConvertBuffer[mode] )
stream_.doConvertBuffer[mode] = true;
if ( stream_.doConvertBuffer[mode] )
- setConvertInfo( mode,
0
);
+ setConvertInfo( mode,
firstChannel
);
// Allocate necessary internal buffers
bufferBytes = stream_.nUserChannels[mode] * stream_.bufferSize * formatBytes( stream_.userFormat );
// Allocate necessary internal buffers
bufferBytes = stream_.nUserChannels[mode] * stream_.bufferSize * formatBytes( stream_.userFormat );