Changeset 361


Ignore:
Timestamp:
10/21/07 14:29:34 (17 years ago)
Author:
r2d
Message:

correction for mono files

Location:
xmms-musepack/branches/r2d/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • xmms-musepack/branches/r2d/src/libmpc.cpp

    r313 r361  
    850850        if (info.bits == -1) return -1; // end of stream
    851851
    852     copyBuffer(sampleBuffer, xmmsBuffer, info.samples);
     852    copyBuffer(sampleBuffer, xmmsBuffer, info.samples * track.channels);
    853853
    854854    if (pluginConfig.dynamicBitrate)
     
    862862    }
    863863
    864         MpcPlugin.add_vis_pcm(MpcPlugin.output->written_time(), FMT_S16_LE, track.channels, info.samples * 4, xmmsBuffer);
    865         MpcPlugin.output->write_audio(xmmsBuffer, info.samples * 4);
     864        MpcPlugin.add_vis_pcm(MpcPlugin.output->written_time(), FMT_S16_LE, track.channels, info.samples * 2 * track.channels, xmmsBuffer);
     865        MpcPlugin.output->write_audio(xmmsBuffer, info.samples * 2 * track.channels);
    866866        return info.samples;
    867867}
  • xmms-musepack/branches/r2d/src/libmpc.h

    r218 r361  
    194194    int clipMax    = (1 << (pSize - 1)) - 1;
    195195    int floatScale =  1 << (pSize - 1);
    196     for (unsigned n = 0; n < 2 * pLength; n++)
     196    for (unsigned n = 0; n < pLength; n++)
    197197    {
    198198        int val;
Note: See TracChangeset for help on using the changeset viewer.