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

This commit is contained in:
Max Kellermann 2019-06-26 15:41:07 +02:00
parent bf574dcb0a
commit 53faf77d20

View File

@ -119,7 +119,7 @@ PcmExport::GetFrameSize(const AudioFormat &audio_format) const noexcept
{
if (pack24)
/* packed 24 bit samples (3 bytes per sample) */
return audio_format.channels * 3;
return channels * 3;
#ifdef ENABLE_DSD
switch (dsd_mode) {