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:
8e58b61
)
duplex test: 64 bit compatibility
author
David Császár
<p6@xn--csszr-yqac.de>
Sun, 5 Apr 2015 07:01:02 +0000
(09:01 +0200)
committer
David Császár
<p6@xn--csszr-yqac.de>
Sun, 5 Apr 2015 07:01:02 +0000
(09:01 +0200)
This change was necessary to prevent BAD ACCESS when compiling on 64 bit OSX
tests/duplex.cpp
patch
|
blob
|
history
diff --git
a/tests/duplex.cpp
b/tests/duplex.cpp
index 06462f2872aae5edbf6f883c01037cc8756f7df4..43d12179bc9c028e0843bdff5c406d877ed5602f 100644
(file)
--- a/
tests/duplex.cpp
+++ b/
tests/duplex.cpp
@@
-55,7
+55,7
@@
int inout( void *outputBuffer, void *inputBuffer, unsigned int /*nBufferFrames*/
// a simple buffer copy operation here.
if ( status ) std::cout << "Stream over/underflow detected." << std::endl;
- u
nsigned int *bytes = (unsigned in
t *) data;
+ u
int32_t *bytes = (uint32_
t *) data;
memcpy( outputBuffer, inputBuffer, *bytes );
return 0;
}