diff options
Diffstat (limited to 'Alc/backends/alsa.c')
-rw-r--r-- | Alc/backends/alsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/alsa.c b/Alc/backends/alsa.c index 51579750..9f77b60d 100644 --- a/Alc/backends/alsa.c +++ b/Alc/backends/alsa.c @@ -703,7 +703,7 @@ static ALCboolean alsa_reset_playback(ALCdevice *device) }; size_t k; - for(k = 0;k < sizeof(formatlist)/sizeof(formatlist[0]);k++) + for(k = 0;k < COUNTOF(formatlist);k++) { format = formatlist[k].format; if(snd_pcm_hw_params_test_format(data->pcmHandle, p, format) >= 0) @@ -726,7 +726,7 @@ static ALCboolean alsa_reset_playback(ALCdevice *device) }; size_t k; - for(k = 0;k < sizeof(channellist)/sizeof(channellist[0]);k++) + for(k = 0;k < COUNTOF(channellist);k++) { if(snd_pcm_hw_params_test_channels(data->pcmHandle, p, ChannelsFromDevFmt(channellist[k])) >= 0) { |