Commit 53faf77d authored by Max Kellermann's avatar Max Kellermann

pcm/Export: use the "channels" attribute in GetFrameSize()

parent bf574dcb
...@@ -119,7 +119,7 @@ PcmExport::GetFrameSize(const AudioFormat &audio_format) const noexcept ...@@ -119,7 +119,7 @@ PcmExport::GetFrameSize(const AudioFormat &audio_format) const noexcept
{ {
if (pack24) if (pack24)
/* packed 24 bit samples (3 bytes per sample) */ /* packed 24 bit samples (3 bytes per sample) */
return audio_format.channels * 3; return channels * 3;
#ifdef ENABLE_DSD #ifdef ENABLE_DSD
switch (dsd_mode) { switch (dsd_mode) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment