mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 09:14:04 +02:00
Tabs to spaces.
This commit is contained in:
@@ -60,15 +60,15 @@ int main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// In this example we use the default playback device with a default buffer size and period count.
|
// In this example we use the default playback device with a default buffer size and period count.
|
||||||
mal_device_config config;
|
mal_device_config config;
|
||||||
config.format = mal_format_f32;
|
config.format = mal_format_f32;
|
||||||
config.channels = wav.channels;
|
config.channels = wav.channels;
|
||||||
config.sampleRate = wav.sampleRate;
|
config.sampleRate = wav.sampleRate;
|
||||||
config.bufferSizeInFrames = 0; // Use default.
|
config.bufferSizeInFrames = 0; // Use default.
|
||||||
config.periods = 0; // Use default.
|
config.periods = 0; // Use default.
|
||||||
config.onRecvCallback = NULL; // Not used for playback.
|
config.onRecvCallback = NULL; // Not used for playback.
|
||||||
config.onSendCallback = on_send_frames_to_device;
|
config.onSendCallback = on_send_frames_to_device;
|
||||||
config.onStopCallback = NULL;
|
config.onStopCallback = NULL;
|
||||||
config.onLogCallback = NULL;
|
config.onLogCallback = NULL;
|
||||||
|
|
||||||
mal_device device;
|
mal_device device;
|
||||||
|
|||||||
Reference in New Issue
Block a user