mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
API CHANGE: Move pUserData from device_init() to device_config_init().
This change makes it consistent with mal_pcm_converter, mal_src, etc.
This commit is contained in:
@@ -38,10 +38,11 @@ int main(int argc, char** argv)
|
||||
decoder.outputFormat,
|
||||
decoder.outputChannels,
|
||||
decoder.outputSampleRate,
|
||||
on_send_frames_to_device);
|
||||
on_send_frames_to_device,
|
||||
&decoder);
|
||||
|
||||
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, &device) != MAL_SUCCESS) {
|
||||
printf("Failed to open playback device.\n");
|
||||
mal_decoder_uninit(&decoder);
|
||||
return -3;
|
||||
|
||||
Reference in New Issue
Block a user