Ravi Chemudugunta wrote:
> hi all,
>
> I am trying to set my sample rate to 22050 however, when ioctl returns 
> the sample rate is set to 48000 Hz, I am not sure what I am doing 
> wrong as I have been able to do this before with OSS4; the manual 
> mentions that ( 
> http://manuals.opensound.com/developer/SNDCTL_DSP_SPEED.html ) the 
> speed set maybe close to what is requested however in this case it is 
> completely refusing (assuming the default is 48000): the strange this 
> is I was able to do this until a few days ago (maybe kernel upgrade on 
> ubuntu?) ... does anyone what could be going on? or know of a way I 
> could resample my output to 48000 (I want to avoid this :( if I can) ?
It looks like you have set the vmixN-src setting to OFF with 
ossmix/ossxmix. Some "professional" sound cards also have a ratelock 
setting in their mixer interface that can be used to lock the sampling 
rate. Also the application itself can lock the rate to 48000 (the 
internal sample rate of vmix) by calling SNDCTL_DSP_COOKEDMODE.

Best regards,

Hannu
_______________________________________________
oss-devel mailing list
oss-devel@mailman.opensound.com
http://mailman.opensound.com/mailman/listinfo/oss-devel

Reply via email to