Red Hat Bugzilla – Bug 33109
afInitRate sample rate argument taken off by one
Last modified: 2007-04-18 12:32:21 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.17-4 alpha)
When calling afInitRate when creating a new sound file, an argument of
produces a file with a rate of 44101.
Steps to Reproduce:
1. Run program myrec1 (I'll try to add source as an attachment). Give file
name as argument.
2. Run sfinfo on the output file. This shows the 44101.
3. Run myfindbrk (I'll try to add source as an attachment). This also shows
Actual Results: The file says its sample rate is 44101 sps.
Expected Results: The file should say its sample rate is 44100 sps.
Created attachment 13584 [details]
source to program that produces sound file
Created attachment 13585 [details]
source to program that reads sound file
Created attachment 13586 [details]
makefile for programs
Upon further coding of my sound package, I found that the sample
rate problem/bug is not in the audiofile library, but an ioctl to /dev/dsp
of type SNDCTL_DSP_SPEED is incrementing the value that is
passed by reference.
Need an update guv
What sound driver is this?
Is this still a problem in recent 2.4 kernels?