aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-04-23 21:36:50 +0200
committerMax Kellermann <max@duempel.org>2012-04-23 21:54:09 +0200
commitdf1c5ce3145253fa3cd0611cefac11ee6f85a063 (patch)
tree8840796e1d96cc4c67672f10da546ad4bea9df59 /src/output
parenta0e4b6e26683903065102e5f5b4035eddf4a3a60 (diff)
downloadmpd-df1c5ce3145253fa3cd0611cefac11ee6f85a063.tar.gz
mpd-df1c5ce3145253fa3cd0611cefac11ee6f85a063.tar.xz
mpd-df1c5ce3145253fa3cd0611cefac11ee6f85a063.zip
pcm_export: add _frame_size()
Move code from the ALSA output plugin.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/alsa_output_plugin.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/output/alsa_output_plugin.c b/src/output/alsa_output_plugin.c
index cf3370d01..5107d0a94 100644
--- a/src/output/alsa_output_plugin.c
+++ b/src/output/alsa_output_plugin.c
@@ -674,9 +674,7 @@ alsa_open(struct audio_output *ao, struct audio_format *audio_format, GError **e
}
ad->in_frame_size = audio_format_frame_size(audio_format);
- ad->out_frame_size = ad->export.pack24
- ? (size_t)(audio_format->channels * 3)
- : ad->in_frame_size;
+ ad->out_frame_size = pcm_export_frame_size(&ad->export, audio_format);
return true;
}