~ubuntu-branches/ubuntu/lucid/mythtv/lucid

« back to all changes in this revision

Viewing changes to libs/libmyth/audiooutputbase.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello, Mario Limonciello, John Baab
  • Date: 2009-09-29 01:33:23 UTC
  • mfrom: (1.1.35 upstream)
  • Revision ID: james.westby@ubuntu.com-20090929013323-6pvn8encm757zbxw
Tags: 0.22.0~trunk22101-0ubuntu1
[ Mario Limonciello ]
* New upstream checkout (r22101)
* Try to guard and make sure that ~mythtv is read from /etc/passwd 
  rather than assuming it's /home/mythtv.

[ John Baab ]
* debian/mythtv-common.postinst:
  - Added symlink for /home/mythtv/.mythtv/config.xml

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
            pSoundStretch->setTempo(audio_stretchfactor);
163
163
            pSoundStretch->setSetting(SETTING_SEQUENCE_MS, 35);
164
164
 
165
 
            // dont need these with only tempo change
 
165
            // don't need these with only tempo change
166
166
            //pSoundStretch->setPitch(1.0);
167
167
            //pSoundStretch->setRate(1.0);
168
168
 
701
701
        int error = src_process(src_ctx, &src_data);
702
702
        if (error)
703
703
            VERBOSE(VB_IMPORTANT, LOC_ERR +
704
 
                    QString("Error occured while resampling audio: %1")
 
704
                    QString("Error occurred while resampling audio: %1")
705
705
                    .arg(src_strerror(error)));
706
706
 
707
707
        src_float_to_short_array(src_data.data_out, (short int*)tmp_buff,
765
765
        int error = src_process(src_ctx, &src_data);
766
766
        if (error)
767
767
            VERBOSE(VB_IMPORTANT, LOC_ERR +
768
 
                    QString("Error occured while resampling audio: %1")
 
768
                    QString("Error occurred while resampling audio: %1")
769
769
                    .arg(src_strerror(error)));
770
770
        src_float_to_short_array(src_data.data_out, (short int*)tmp_buff,
771
771
                                 src_data.output_frames_gen*audio_channels);
811
811
                int error = src_reset(src_ctx);
812
812
                if (error)
813
813
                    VERBOSE(VB_IMPORTANT, LOC_ERR + QString(
814
 
                            "Error occured while resetting resampler: %1")
 
814
                            "Error occurred while resetting resampler: %1")
815
815
                            .arg(src_strerror(error)));
816
816
            }
817
817
        }