mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
67db06350d
This removes the two separate callbacks for sending and receiving data to/from the device to a unified callback that's used for both input and output. The new callback takes a pointer to both an input and output buffer. When the device is opened in playback mode the input pointer will be set to null. Likewise the output pointer will be set to null for capture devices. Both input and output pointers will be non-null for full-duplex devices.
To compile these examples, cd into the "build" directory and run the applicable build script. Executables will be placed in the "bin" directory.
cd build
./mal_build_examples_linux
Then you can run executables like this:
../bin/simple_playback my_sound.wav