Changeset 127 for xmms-musepack/branches/r2d/src/libmpc.cpp
- Timestamp:
- 11/13/06 20:15:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
xmms-musepack/branches/r2d/src/libmpc.cpp
r103 r127 512 512 GtkWidget* streamLabel = mpcGtkLabel(infoVbox); 513 513 GtkWidget* encoderLabel = mpcGtkLabel(infoVbox); 514 GtkWidget* profileLabel = mpcGtkLabel(infoVbox); 514 GtkWidget* profileLabel = mpcGtkLabel(infoVbox); 515 GtkWidget* pnsLabel = mpcGtkLabel(infoVbox); 516 GtkWidget* gaplessLabel = mpcGtkLabel(infoVbox); 515 517 GtkWidget* bitrateLabel = mpcGtkLabel(infoVbox); 516 518 GtkWidget* rateLabel = mpcGtkLabel(infoVbox); … … 535 537 mpcGtkPrintLabel(streamLabel, "Streamversion %d", info.stream_version); 536 538 mpcGtkPrintLabel(encoderLabel, "Encoder: \%s", info.encoder); 537 mpcGtkPrintLabel(profileLabel, "Profile: \%s", info.profile_name); 539 mpcGtkPrintLabel(profileLabel, "Profile: \%s", info.profile_name); 540 mpcGtkPrintLabel(pnsLabel, "PNS: \%s", info.pns ? "on" : "off"); 541 mpcGtkPrintLabel(gaplessLabel, "Gapless: \%s", info.is_true_gapless ? "on" : "off"); 538 542 mpcGtkPrintLabel(bitrateLabel, "Average bitrate: \%6.1f kbps", info.average_bitrate * 1.e-3); 539 543 mpcGtkPrintLabel(rateLabel, "Samplerate: \%d Hz", info.sample_freq); … … 827 831 if (!mpcDecoder.isPause && status == 0 && MpcPlugin.output->output_time() == 0) 828 832 break; 829 xmms_usleep(10000 );833 xmms_usleep(100000); 830 834 } 831 835 } … … 837 841 static int processBuffer(MPC_SAMPLE_FORMAT* sampleBuffer, char* xmmsBuffer, mpc_demux& demux) 838 842 { 839 mpc_uint32_t vbrAcc = 0;840 mpc_uint32_t vbrUpd = 0;841 843 mpc_frame_info info; 842 844 … … 847 849 if (pluginConfig.dynamicBitrate) 848 850 { 849 track.bitrate = static_cast<int> ( vbrUpd* track.sampleFreq / 1152);851 track.bitrate = static_cast<int> (info.bits * track.sampleFreq / 1152); 850 852 } 851 853
Note: See TracChangeset
for help on using the changeset viewer.