[PlanetCCRMA] help! Sample rate trouble with CCRMA / FC3, SDL, M-Audio Delta 1010

David O'Toole dto@twu.net
Wed Sep 28 07:15:00 2005


Hi all. Although ALSA and JACK apps are working just fine on my
system, I am having trouble with things like mpg123 and unfortunately,
anything at all that uses SDL for sound. 

I get the following errors quite consistently on startup of such
applications:

----
Audio device open for 44.1Khz, stereo, 16bit failed
Trying 44.1Khz, 8bit stereo.
Audio device open for 44.1Khz, stereo, 8bit failed
Trying 48Khz, 16bit stereo.
Audio device open for 48Khz, stereo,16bit failed
Trying 22.05Khz, 8bit stereo.
Audio device open for 22.05Khz, stereo, 8bit failed
Trying 44.1Khz, 16bit mono.
Audio device open for 44.1Khz, mono, 8bit failed
Trying 22.05Khz, 8bit mono.
Audio device open for 22.05Khz, mono, 8bit failed
Trying 11.025Khz, 8bit stereo.
Audio device open for 11.025Khz, stereo, 8bit failed
Trying 11.025Khz, 8bit mono.
Audio device open for 11.025Khz, mono, 8bit failed
Trying 8.192Khz, 8bit mono.
----

The last one works, and I get only distorted 8.192Khz, 8-bit grungy
sound from my Delta 1010 :-(

After a bit of googling, I read that supposedly the following commands
will help (see below) I should turn on (i.e. unmute) the Multitrack
Rate Locking of the envy24 chip when starting a problematic
application, and turn it off when done.

#
amixer sset "Multi Track Rate Locking" unmute 
#
amixer sset "Multi Track Rate Locking" mute
#

Results: makes a slight change in the sound but no real improvement!

On further investigation this seems to be related to ESD. I tried
running mpg123 with the alsa output instead and it worked!

#
mpg123 -o alsa doumbek2.mp3
#

However, the following (which should have done the same and corrected
the problem for all the SDL stuff I'm trying to run) most decidedly
did not work: 

#
export SDL_AUDIODRIVER=alsa
export AUDIODEV=hw:0
#

The results I get are the following: 

----
warning: Unable to open SDL audio: Couldn't find any hardware audio formats
----

So, I am unable to get sound in any SDL applications. I get either the
long list of format error messages seen toward the top of this
message, or the short "unable to open SDL audio" message just shown.

So, what am I missing? I'm on Fedora Core 3, Planetccrma, using a
Delta 1010 for all sound, with SDL package version as shown below:

$ rpm --query SDL
SDL-1.2.7-8

I'm starting to wonder whether I've screwed something up.

Thanks in advance for any help you can offer. 

-- 
Dave O'Toole
dto@twu.net