Changeset 144 for xmms-musepack/branches/r2d/src/libmpc.cpp
- Timestamp:
- 11/17/06 21:05:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
xmms-musepack/branches/r2d/src/libmpc.cpp
r127 r144 801 801 802 802 int counter = 2 * track.sampleFreq / 3; 803 unsigned status = 1;803 int status = 0; 804 804 while (isAlive()) 805 805 { 806 806 if (getOffset() != -1) 807 807 { 808 // mpc_decoder_seek_seconds(decoder, mpcDecoder.offset);808 mpc_demux_seek_second(demux, mpcDecoder.offset); 809 809 setOffset(-1); 810 status = 0; 810 811 } 811 812 … … 813 814 short iPlaying = MpcPlugin.output->buffer_playing()? 1 : 0; 814 815 int iFree = MpcPlugin.output->buffer_free(); 815 if (!mpcDecoder.isPause && iFree >= ((1152 * 4) << iPlaying) && status != 0)816 if (!mpcDecoder.isPause && iFree >= ((1152 * 4) << iPlaying) && status != -1) 816 817 { 817 818 status = processBuffer(sampleBuffer, xmmsBuffer, *demux); … … 829 830 { 830 831 lockRelease(); 831 if (!mpcDecoder.isPause && status == 0&& MpcPlugin.output->output_time() == 0)832 if (!mpcDecoder.isPause && status == -1 && MpcPlugin.output->output_time() == 0) 832 833 break; 833 834 xmms_usleep(100000); … … 845 846 info.buffer = sampleBuffer; 846 847 mpc_demux_decode(&demux, &info); 848 849 if (info.bits == -1) return -1; // end of stream 850 847 851 copyBuffer(sampleBuffer, xmmsBuffer, info.samples); 848 852
Note: See TracChangeset
for help on using the changeset viewer.