Changeset 361
- Timestamp:
- 10/21/07 14:29:34 (17 years ago)
- Location:
- xmms-musepack/branches/r2d/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
xmms-musepack/branches/r2d/src/libmpc.cpp
r313 r361 850 850 if (info.bits == -1) return -1; // end of stream 851 851 852 copyBuffer(sampleBuffer, xmmsBuffer, info.samples );852 copyBuffer(sampleBuffer, xmmsBuffer, info.samples * track.channels); 853 853 854 854 if (pluginConfig.dynamicBitrate) … … 862 862 } 863 863 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); 866 866 return info.samples; 867 867 } -
xmms-musepack/branches/r2d/src/libmpc.h
r218 r361 194 194 int clipMax = (1 << (pSize - 1)) - 1; 195 195 int floatScale = 1 << (pSize - 1); 196 for (unsigned n = 0; n < 2 *pLength; n++)196 for (unsigned n = 0; n < pLength; n++) 197 197 { 198 198 int val;
Note: See TracChangeset
for help on using the changeset viewer.