John Check wrote:

> ---------
> In the constructor for FGSoundMgr:
> 
> FGSoundMgr::FGSoundMgr() {
>     audio_sched = new slScheduler( 8000 );
>     ......
>   }
> 
> Which, if I understand it right, is setting the playback rate to 8Khz.
> So even though we're reading samples off the disk at arbitrary rates
> playback is fixed here.  Looking at doco..... Yup, looks like 8 bit 8Khz is 
> lowest common denominator for hardware... Once the samples are in a buffer 
> they are played at 8Khz.... so.... we should either make that the standard 
> for samples or apply a pitch shift relative to the ratio of the actual sample 
> rate vs playback rate. 
> IOW, if a source sample is say, 16Khz it needs +8Va pitch shift to play back 
> at the correct pitch through slScheduler. Might get a little dicey for odd 
> sample rates but it should be close enough for rock and roll. 
> Whatdya think?


I think a fixed sample rate (especially 8 Khz) is plain mad!
Is there any reason not to use different sample rates for different 
samples? If not then let it at least be 22 Khz to make any sence ...

Erik


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to