Ticket #2688: fix.timestretch.patch
File fix.timestretch.patch, 1.4 KB (added by , 17 years ago) |
---|
-
mythtv/libs/libmythtv/NuppelVideoPlayer.cpp
3790 3790 if (normal_speed && audioOutput) 3791 3791 { 3792 3792 audio_stretchfactor = play_speed; 3793 bool disable = (play_speed < 0.99f) || (play_speed > 1.01f); 3793 3794 if (decoder) 3794 3795 { 3795 bool disable = (play_speed < 0.99f) || (play_speed > 1.01f);3796 3796 VERBOSE(VB_PLAYBACK, LOC + 3797 3797 QString("Stretch Factor %1, %2 passthru ") 3798 3798 .arg(audio_stretchfactor) 3799 3799 .arg((disable) ? "disable" : "allow")); 3800 3800 decoder->SetDisablePassThrough(disable); 3801 3801 } 3802 if (audioOutput )3802 if (audioOutput && disable) 3803 3803 { 3804 3804 audioOutput->SetStretchFactor(play_speed); 3805 3805 #ifdef USING_DIRECTX -
mythtv/libs/libmyth/audiooutputbase.cpp
144 144 audio_bits = laudio_bits; 145 145 audio_samplerate = laudio_samplerate; 146 146 audio_passthru = laudio_passthru; 147 if (audio_passthru) 148 { 149 audio_stretchfactor = 1.0; 150 } 147 151 if (audio_bits != 8 && audio_bits != 16) 148 152 { 149 153 Error("AudioOutput only supports 8 or 16bit audio.");