mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Update duplex test.
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ void data_callback(ma_device* pDevice, void* pOutput, const void* pInput, ma_uin
|
||||
MA_ASSERT(pDevice->capture.format == pDevice->playback.format);
|
||||
|
||||
/* In this test the format and channel count are the same for both input and output which means we can just memcpy(). */
|
||||
ma_copy_memory(pOutput, pInput, frameCount * ma_get_bytes_per_frame(pDevice->capture.format, pDevice->capture.channels));
|
||||
MA_COPY_MEMORY(pOutput, pInput, frameCount * ma_get_bytes_per_frame(pDevice->capture.format, pDevice->capture.channels));
|
||||
|
||||
#if defined(OUTPUT_WAV) && OUTPUT_WAV==1
|
||||
/* Also write to a wav file for debugging. */
|
||||
|
||||
Reference in New Issue
Block a user