Commit 96652461 authored by David Reid's avatar David Reid

Use MAL_CHANNEL_MONO instead of MAL_CHANNEL_FRONT_CENTER.

parent 7600817e
...@@ -2699,7 +2699,7 @@ static mal_result mal_post_error(mal_device* pDevice, const char* message, mal_r ...@@ -2699,7 +2699,7 @@ static mal_result mal_post_error(mal_device* pDevice, const char* message, mal_r
static void mal_get_default_channel_mapping(mal_backend backend, mal_uint32 channels, mal_channel channelMap[MAL_MAX_CHANNELS]) static void mal_get_default_channel_mapping(mal_backend backend, mal_uint32 channels, mal_channel channelMap[MAL_MAX_CHANNELS])
{ {
if (channels == 1) { // Mono if (channels == 1) { // Mono
channelMap[0] = MAL_CHANNEL_FRONT_CENTER; channelMap[0] = MAL_CHANNEL_MONO;
} else if (channels == 2) { // Stereo } else if (channels == 2) { // Stereo
channelMap[0] = MAL_CHANNEL_FRONT_LEFT; channelMap[0] = MAL_CHANNEL_FRONT_LEFT;
channelMap[1] = MAL_CHANNEL_FRONT_RIGHT; channelMap[1] = MAL_CHANNEL_FRONT_RIGHT;
......
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