mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 16:24:04 +02:00
ALSA: Fix an infinite loop bug during device initialization.
This commit is contained in:
@@ -6642,6 +6642,7 @@ static mal_result mal_device_init__alsa(mal_context* pContext, mal_device_type t
|
||||
free(NAME);
|
||||
free(DESC);
|
||||
free(IOID);
|
||||
ppNextDeviceHint += 1;
|
||||
|
||||
if (foundDevice) {
|
||||
break;
|
||||
@@ -6832,8 +6833,6 @@ static mal_result mal_device_init__alsa(mal_context* pContext, mal_device_type t
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Grab the internal channel map. For now we're not going to bother trying to change the channel map and
|
||||
// instead just do it ourselves.
|
||||
snd_pcm_chmap_t* pChmap = ((mal_snd_pcm_get_chmap_proc)pContext->alsa.snd_pcm_get_chmap)((snd_pcm_t*)pDevice->alsa.pPCM);
|
||||
|
||||
Reference in New Issue
Block a user