projects
/
rtaudio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pulseaudio backend also needs pthreads
[rtaudio.git]
/
tests
/
duplex.cpp
diff --git
a/tests/duplex.cpp
b/tests/duplex.cpp
index 06462f2872aae5edbf6f883c01037cc8756f7df4..494e5ad7ab121e6ffa1ac98537d064af20c2c9f2 100644
(file)
--- a/
tests/duplex.cpp
+++ b/
tests/duplex.cpp
@@
-105,6
+105,7
@@
int main( int argc, char *argv[] )
RtAudio::StreamOptions options;
//options.flags |= RTAUDIO_NONINTERLEAVED;
RtAudio::StreamOptions options;
//options.flags |= RTAUDIO_NONINTERLEAVED;
+ bufferBytes = bufferFrames * channels * sizeof( MY_TYPE );
try {
adac.openStream( &oParams, &iParams, FORMAT, fs, &bufferFrames, &inout, (void *)&bufferBytes, &options );
}
try {
adac.openStream( &oParams, &iParams, FORMAT, fs, &bufferFrames, &inout, (void *)&bufferBytes, &options );
}
@@
-113,8
+114,6
@@
int main( int argc, char *argv[] )
exit( 1 );
}
exit( 1 );
}
- bufferBytes = bufferFrames * channels * sizeof( MY_TYPE );
-
// Test RtAudio functionality for reporting latency.
std::cout << "\nStream latency = " << adac.getStreamLatency() << " frames" << std::endl;
// Test RtAudio functionality for reporting latency.
std::cout << "\nStream latency = " << adac.getStreamLatency() << " frames" << std::endl;