Diffstat (limited to 'core/multimedia/opieplayer/libmad/libmadplugin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/libmad/libmadplugin.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/multimedia/opieplayer/libmad/libmadplugin.cpp b/core/multimedia/opieplayer/libmad/libmadplugin.cpp index 6793773..7de4282 100644 --- a/core/multimedia/opieplayer/libmad/libmadplugin.cpp +++ b/core/multimedia/opieplayer/libmad/libmadplugin.cpp | |||
@@ -525,30 +525,30 @@ int LibMadPlugin::audioChannels( int ) { | |||
525 | 525 | ||
526 | 526 | ||
527 | int LibMadPlugin::audioFrequency( int ) { | 527 | int LibMadPlugin::audioFrequency( int ) { |
528 | debugMsg( "LibMadPlugin::audioFrequency" ); | 528 | debugMsg( "LibMadPlugin::audioFrequency" ); |
529 | long t; short t1[5]; audioReadSamples( t1, 2, 1, t, 0 ); | 529 | long t; short t1[5]; audioReadSamples( t1, 2, 1, t, 0 ); |
530 | qDebug( "LibMadPlugin::audioFrequency: %i", d->frame.header.samplerate ); | 530 | qDebug( "LibMadPlugin::audioFrequency: %i", d->frame.header.samplerate ); |
531 | return d->frame.header.samplerate; | 531 | return d->frame.header.samplerate; |
532 | } | 532 | } |
533 | 533 | ||
534 | 534 | ||
535 | int LibMadPlugin::audioSamples( int ) { | 535 | int LibMadPlugin::audioSamples( int ) { |
536 | debugMsg( "LibMadPlugin::audioSamples" ); | 536 | debugMsg( "LibMadPlugin::audioSamples" ); |
537 | /* | 537 | |
538 | long t; short t1[5]; audioReadSamples( t1, 2, 1, t, 0 ); | 538 | // long t; short t1[5]; audioReadSamples( t1, 2, 1, t, 0 ); |
539 | mad_header_decode( (struct mad_header *)&d->frame.header, &d->stream ); | 539 | // mad_header_decode( (struct mad_header *)&d->frame.header, &d->stream ); |
540 | qDebug( "LibMadPlugin::audioSamples: %i*%i", d->frame.header.duration.seconds, d->frame.header.samplerate ); | 540 | // qDebug( "LibMadPlugin::audioSamples: %i*%i", d->frame.header.duration.seconds, d->frame.header.samplerate ); |
541 | return d->frame.header.duration.seconds * d->frame.header.samplerate; | 541 | // return d->frame.header.duration.seconds * d->frame.header.samplerate; |
542 | */ | 542 | |
543 | return 10000000; | 543 | return 10000000; |
544 | } | 544 | } |
545 | 545 | ||
546 | 546 | ||
547 | bool LibMadPlugin::audioSetSample( long, int ) { | 547 | bool LibMadPlugin::audioSetSample( long, int ) { |
548 | debugMsg( "LibMadPlugin::audioSetSample" ); | 548 | debugMsg( "LibMadPlugin::audioSetSample" ); |
549 | return FALSE; | 549 | return FALSE; |
550 | } | 550 | } |
551 | 551 | ||
552 | 552 | ||
553 | long LibMadPlugin::audioGetSample( int ) { | 553 | long LibMadPlugin::audioGetSample( int ) { |
554 | debugMsg( "LibMadPlugin::audioGetSample" ); | 554 | debugMsg( "LibMadPlugin::audioGetSample" ); |
@@ -773,25 +773,25 @@ bool LibMadPlugin::audioReadSamples( short *output, int /*channels*/, long sampl | |||
773 | */ | 773 | */ |
774 | return FALSE; | 774 | return FALSE; |
775 | } | 775 | } |
776 | 776 | ||
777 | 777 | ||
778 | double LibMadPlugin::getTime() { | 778 | double LibMadPlugin::getTime() { |
779 | debugMsg( "LibMadPlugin::getTime" ); | 779 | debugMsg( "LibMadPlugin::getTime" ); |
780 | return 0.0; | 780 | return 0.0; |
781 | } | 781 | } |
782 | 782 | ||
783 | 783 | ||
784 | void LibMadPlugin::printID3Tags() { | 784 | void LibMadPlugin::printID3Tags() { |
785 | debugMsg( "LibMadPlugin::printID3Tags" ); | 785 | qDebug( "LibMadPlugin::printID3Tags" ); |
786 | 786 | ||
787 | char id3v1[128 + 1]; | 787 | char id3v1[128 + 1]; |
788 | 788 | ||
789 | if ( ::lseek( d->input.fd, -128, SEEK_END ) == -1 ) { | 789 | if ( ::lseek( d->input.fd, -128, SEEK_END ) == -1 ) { |
790 | qDebug( "error seeking to id3 tags" ); | 790 | qDebug( "error seeking to id3 tags" ); |
791 | return; | 791 | return; |
792 | } | 792 | } |
793 | 793 | ||
794 | if ( ::read( d->input.fd, id3v1, 128 ) != 128 ) { | 794 | if ( ::read( d->input.fd, id3v1, 128 ) != 128 ) { |
795 | qDebug( "error reading in id3 tags" ); | 795 | qDebug( "error reading in id3 tags" ); |
796 | return; | 796 | return; |
797 | } | 797 | } |