Set up some infrastructure for separate in/out device IDs.

This commit is contained in:
David Reid
2019-01-27 12:45:09 +10:00
parent e8e4198440
commit 6548f4e2f1
4 changed files with 395 additions and 192 deletions
+5 -2
View File
@@ -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;