// Try using interleaved MMAP access. If this fails, fall back to standard readi/writei.
snd_pcm_hw_params_free(pHWParams);
pDevice->alsa.isUsingMMap=MAL_FALSE;
mal_device_uninit__alsa(pDevice);
#ifdef MAL_ENABLE_EXPERIMENTAL_ALSA_MMAP
returnmal_post_error(pDevice,"[ALSA] Failed to set access mode to SND_PCM_ACCESS_RW_INTERLEAVED. snd_pcm_hw_params_set_access() failed.",MAL_FORMAT_NOT_SUPPORTED);
returnmal_post_error(pDevice,"[ALSA] Failed to set access mode to neither SND_PCM_ACCESS_MMAP_INTERLEAVED nor SND_PCM_ACCESS_RW_INTERLEAVED. snd_pcm_hw_params_set_access() failed.",MAL_FORMAT_NOT_SUPPORTED);
returnmal_post_error(pDevice,"[ALSA] Failed to set start threshold for playback device. snd_pcm_sw_params_set_start_threshold() failed.",MAL_ALSA_FAILED_TO_SET_SW_PARAMS);
returnmal_post_error(pDevice,"[ALSA] Failed to set start threshold for playback device. snd_pcm_sw_params_set_start_threshold() failed.",MAL_ALSA_FAILED_TO_SET_SW_PARAMS);