On Thu, 27 Jun 2002, Kris Modrak wrote: > I am writing a PCM application and wish to play a .wav file that has a > sampling rate of 8kHz on a hardware setup that only supports sampling > frequencies of 44.1 or 48kHz. > > Does anyone know how to implement this?
You don't need to do this. Use the 'plughw' device which should do all conversions from you. > > I have tried setting up a rate plugin in my .asoundrc file > > pcm.r8 { > type rate # Rate PCM > slave slave_rate8000Hz # Slave name > } > > pcm_slave.slave_rate8000Hz { > pcm "hw:0,0" > rate 8000 Use 44100 or 48000. It's the rate for the hardware not the source rate. Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project http://www.alsa-project.org SuSE Linux http://www.suse.com ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel