Curious sound playback slowdown

Ariff Abdullah skywizard at MyBSD.org.my
Wed Sep 21 02:17:58 PDT 2005


On Tue, 20 Sep 2005 22:18:17 -0700
Jos Backus <jos at catnook.com> wrote:
> On Fri, Sep 16, 2005 at 10:43:59PM -0701, Jos Backus wrote:
> ...
> >  92231 firefox-bin CALL  ioctl(0x13,SNDCTL_DSP_STEREO,0xbfbf6ca0)
> >  92231 firefox-bin RET   ioctl 0
> >  92231 firefox-bin CALL  ioctl(0x13,SNDCTL_DSP_SPEED,0xbfbf6cdc)
> >  92231 firefox-bin RET   ioctl 0
> >  92231 firefox-bin CALL 
> >  ioctl(0x13,SNDCTL_DSP_SETFRAGMENT,0xbfbf6d08) 92231 firefox-bin RET
> >    ioctl 0
> >  92231 firefox-bin CALL  ioctl(0x13,SNDCTL_DSP_GETCAPS,0xbfbf6d04)
> >  92231 firefox-bin RET   ioctl 0
> >  92231 firefox-bin CALL  fcntl(0x13,0x4,0)
> >  92231 firefox-bin RET   fcntl 0
> >  92231 firefox-bin CALL  close(0x13)
> ...
> 
> It's unclear to me why the SNDCTL_DSP_SPEED ioctl is stuffing the
> wrong value into the device. Running the program below as
> `set-samplerate 22050' appears to mimic the change the Flash plugin
> effects. Running `set-samplerate' restores sound pitch to a normal
> value. So I have a workaround for now at least.
> 
Luckily I have this card and do realize this problem. That's because
flash plugin trying to set speed for recording that differ from playback
speed.

I will examine this issue later this day.


--

Ariff Abdullah
MyBSD

http://www.MyBSD.org.my (IPv6/IPv4)
http://staff.MyBSD.org.my (IPv6/IPv4)
http://tomoyo.MyBSD.org.my (IPv6/IPv4)


More information about the freebsd-multimedia mailing list