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

correction for mono files

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.