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);
}
...
...
@@ -2537,15 +2516,13 @@ static mal_result mal_device_init__alsa(mal_device* pDevice, mal_device_type typ
// If we're _not_ using mmap we need to use an intermediary buffer.
if(channels==0||sampleRate==0||fragmentSizeInFrames==0||fragmentCount==0)returnmal_post_error(pDevice,"mal_device_init() called with invalid arguments.",MAL_INVALID_ARGS);
if(channels==0||sampleRate==0||bufferSizeInFrames==0||periods==0)returnmal_post_error(pDevice,"mal_device_init() called with invalid arguments.",MAL_INVALID_ARGS);