Commit df0f5081 authored by David Reid's avatar David Reid

audioio: Whitespace and clean up.

parent 37c732b6
......@@ -15159,8 +15159,8 @@ mal_result mal_device_init__audioio(mal_context* pContext, mal_device_type devic
return mal_post_error(pDevice, MAL_LOG_LEVEL_ERROR, "[audioio] Failed to retrieve device format.", result);
}
prinfo->channels = nativeInfo.maxChannels; //pDevice->channels;
prinfo->sample_rate = nativeInfo.maxSampleRate; //pDevice->sampleRate;
prinfo->channels = nativeInfo.maxChannels;
prinfo->sample_rate = nativeInfo.maxSampleRate;
// We need to apply the settings so far so we can get back the actual sample rate which we need for calculating
// the default buffer size below.
......@@ -15173,8 +15173,6 @@ mal_result mal_device_init__audioio(mal_context* pContext, mal_device_type devic
close(pDevice->audioio.fd);
return mal_post_error(pDevice, MAL_LOG_LEVEL_ERROR, "[audioio] AUDIO_GETINFO failed.", MAL_FORMAT_NOT_SUPPORTED);
}
//printf("Channels: %d\n", prinfo->channels);
//printf("Sample Rate: %d\n", prinfo->sample_rate);
pDevice->internalFormat = mal_format_from_prinfo__audioio(prinfo);
if (pDevice->internalFormat == mal_format_unknown) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment