mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Update playback example so it fits nicely on github's main page.
This commit is contained in:
@@ -98,7 +98,11 @@ int main(int argc, char** argv)
|
|||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
|
|
||||||
mal_device_config config = mal_device_config_init_playback(decoder.outputFormat, decoder.outputChannels, decoder.outputSampleRate, on_send_frames_to_device);
|
mal_device_config config = mal_device_config_init_playback(
|
||||||
|
decoder.outputFormat,
|
||||||
|
decoder.outputChannels,
|
||||||
|
decoder.outputSampleRate,
|
||||||
|
on_send_frames_to_device);
|
||||||
|
|
||||||
mal_device device;
|
mal_device device;
|
||||||
if (mal_device_init(NULL, mal_device_type_playback, NULL, &config, &decoder, &device) != MAL_SUCCESS) {
|
if (mal_device_init(NULL, mal_device_type_playback, NULL, &config, &decoder, &device) != MAL_SUCCESS) {
|
||||||
|
|||||||
@@ -34,7 +34,11 @@ int main(int argc, char** argv)
|
|||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
|
|
||||||
mal_device_config config = mal_device_config_init_playback(decoder.outputFormat, decoder.outputChannels, decoder.outputSampleRate, on_send_frames_to_device);
|
mal_device_config config = mal_device_config_init_playback(
|
||||||
|
decoder.outputFormat,
|
||||||
|
decoder.outputChannels,
|
||||||
|
decoder.outputSampleRate,
|
||||||
|
on_send_frames_to_device);
|
||||||
|
|
||||||
mal_device device;
|
mal_device device;
|
||||||
if (mal_device_init(NULL, mal_device_type_playback, NULL, &config, &decoder, &device) != MAL_SUCCESS) {
|
if (mal_device_init(NULL, mal_device_type_playback, NULL, &config, &decoder, &device) != MAL_SUCCESS) {
|
||||||
|
|||||||
Reference in New Issue
Block a user