diff options
author | Max Kellermann <max@duempel.org> | 2010-01-16 17:45:56 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-01-16 23:44:48 +0100 |
commit | 579a8a96ea3ca756d30a02015ab62a36330c6f38 (patch) | |
tree | 8dd347c621224d86c1ae8fe02fd4f6d2e75abe31 /src/output | |
parent | 79848e3414dd9a5d11b2a5bfb5f666e3362fff03 (diff) | |
download | mpd-579a8a96ea3ca756d30a02015ab62a36330c6f38.tar.gz mpd-579a8a96ea3ca756d30a02015ab62a36330c6f38.tar.xz mpd-579a8a96ea3ca756d30a02015ab62a36330c6f38.zip |
output/alsa: pass sample_format to get_bitformat()
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/alsa_plugin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output/alsa_plugin.c b/src/output/alsa_plugin.c index ff591230c..86c70f19d 100644 --- a/src/output/alsa_plugin.c +++ b/src/output/alsa_plugin.c @@ -183,9 +183,9 @@ alsa_test_default_device(void) } static snd_pcm_format_t -get_bitformat(const struct audio_format *af) +get_bitformat(enum sample_format sample_format) { - switch (af->format) { + switch (sample_format) { case SAMPLE_FORMAT_S8: return SND_PCM_FORMAT_S8; @@ -224,7 +224,7 @@ static int alsa_output_setup_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *hwparams, struct audio_format *audio_format) { - snd_pcm_format_t bitformat = get_bitformat(audio_format); + snd_pcm_format_t bitformat = get_bitformat(audio_format->format); if (bitformat == SND_PCM_FORMAT_UNKNOWN) { /* sample format is not supported by this plugin - fall back to 16 bit samples */ |