mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Set up some infrastructure for separate in/out device IDs.
This commit is contained in:
+5
-2
@@ -2117,7 +2117,8 @@ int do_backend_test(mal_backend backend)
|
||||
// Context.
|
||||
printf(" Creating Context... ");
|
||||
{
|
||||
mal_context_config contextConfig = mal_context_config_init(on_log);
|
||||
mal_context_config contextConfig = mal_context_config_init();
|
||||
contextConfig.logCallback = on_log;
|
||||
|
||||
result = mal_context_init(&backend, 1, &contextConfig, &context);
|
||||
if (result == MAL_SUCCESS) {
|
||||
@@ -2285,7 +2286,9 @@ int do_playback_test(mal_backend backend)
|
||||
// Device.
|
||||
printf(" Opening Device... ");
|
||||
{
|
||||
mal_context_config contextConfig = mal_context_config_init(on_log);
|
||||
mal_context_config contextConfig = mal_context_config_init();
|
||||
contextConfig.logCallback = on_log;
|
||||
|
||||
mal_device_config deviceConfig = mal_device_config_init(mal_device_type_playback);
|
||||
deviceConfig.pUserData = &callbackData;
|
||||
deviceConfig.dataCallback = on_send__playback_test;
|
||||
|
||||
Reference in New Issue
Block a user