[beast/devel: 10/28] FLAC: fix length information for multi-channel files



commit 19284d278fe5b7b5d2e1d0bffd2eab4da9814a00
Author: Stefan Westerfeld <stefan space twc de>
Date:   Tue Mar 19 16:47:31 2013 +0100

    FLAC: fix length information for multi-channel files

 bse/bsedatahandle-flac.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bse/bsedatahandle-flac.cc b/bse/bsedatahandle-flac.cc
index d612340..303ea83 100644
--- a/bse/bsedatahandle-flac.cc
+++ b/bse/bsedatahandle-flac.cc
@@ -118,7 +118,7 @@ public:
       return BSE_ERROR_IO;
 
     m_n_channels = setup->n_channels = FLAC__stream_decoder_get_channels (m_decoder);
-    setup->n_values = FLAC__stream_decoder_get_total_samples (m_decoder);
+    setup->n_values = FLAC__stream_decoder_get_total_samples (m_decoder) * m_n_channels;
     setup->bit_depth = FLAC__stream_decoder_get_bits_per_sample (m_decoder);
     setup->mix_freq = FLAC__stream_decoder_get_sample_rate (m_decoder);
     setup->xinfos = bse_xinfos_add_float (setup->xinfos, "osc-freq", m_osc_freq);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]