what I know is, that a normal sound card can handle only one speed rate at the same time (I tried once to capture at 8kHz and wondered that playing sound with all the other tools is so SLOW :-).
thus you have to recode the first steam to the rate of the second one in software before mixing them together! here http://alsa.opensrc.org/index.php/.asoundrc you find the following .asoundrc example for recoding a stream by software: pcm_slave.sl2 { pcm ens1371 rate 44100 } pcm.rate_convert { type rate slave sl2 } I know, it is not easy to play with .asoundrc because it is hard to test it... I useed a well known mp3 file with mplayer... then it shows some debug messages if you make a syntax errors and you see informations about speed and more. hope this helps Andreas Am Donnerstag, 10. Januar 2008 13:23 schrieb Christian Lyra: > Hi there, > > This is off-topic, but there´s a chance that someone here knows. I > just found how funny and addictive is the Frets On Fire (FOF) game. > Configure freevo to launch it was easy, but I found a annoying problem > (not freevo related). FOF works by mixing two ogg audio streams, one > with the guitar part of the song, and another with the other > instruments.The problem is that the game expects to use a sample rate > of 44.1khz and my sound card just cant do hardware mixing at 44.1khz, > only at 48khz. The specs from shuttle says that the sound card is a > Realtek ALC888DD (snd-hda-intel module on my 2.6.23.9 kernel). The > card can play 44.1khz streams just fine, but cant mix two or more, so > when playing the game I cant only hear "half" of the song. > > Alsa was suposed to use dmix when hardware mixing is not there. But it > didnt work either. I tried to write a asoundrc file to explicit tell > alsa to use dmix, overriding pcm.!default and pointing it to a > "swmixer", but without success. Even if the file looks ok, and I can > use the config with "alsaplayer -d swmixer <song>" the game just cant > mix the two streams. Strangely enough if I set the game to use a > sample rate of 22050hz it works, but at the cost of some sound > quality. Changing the sample rate to 48khz in the game also works, but > in this case the music play faster, with higher pitch, and gets out of > sync with the video. > > Does anyone has any idea of how to fix it? perhaps there´s a magic > asoundrc? or a SDL option as the game is made in python/sdl ? ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users