Skip to contentSkip to conversation

Alsa and dmix

DISCUSSION Adam Tla/lka 1 participant 2 messages Jun 4, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 3 lines · Matthias Sauppe

I tried various configurations of alsa, but couldn't run both xmms and Quake. Could you please give me a hint how you managed that? I didn't find any useful information with Google :/

I must generate patch for latest ALSA CVS sources but I have no time for it now.
But meantime you can download my version of aoss-lib which seems to work with ALSA-1.0.5 too:

http://www.pg.gda.pl/~atlka/_O_/alsa-20040302-aoss.tgz

Try: configure; make; make install

I tested it with quake1, quake2, quake3, bzflag, JavaSoundDemo, mozilla, xmms, mpg123 and it seems to work.
Of course it is not perfect and has bugs for sure.

For example ShogoDemo disables sound after playing part of
starting song. If I start it with ALSA_OSS_DEBUG I get SDL sound timeout
error:
write(7, 0x80c8660, 16384) -> 16384Orig enter SELECT nfds: 8, timeout: 10.000000wfds: 00000001 Changed enter SELECT nfds: 9, timeout: 10.000000
rfds: 000000001
wfds: 000000000
Changed exit SELECT nfds: 9, timeout: 10.000000
rfds: 000000001
wfds: 000000000
Orig exit SELECT nfds: 8, timeout: 10.000000
wfds: 00000000
SDL: Audio timeout - buggy audio driver? (disabled)

CHANGES: OSS buffer size is fixed - if you take a look at OSS doc you should notice that an app could get buffer size and num of fragments before setting dsp params and after that operation they cannot change. ALSA can change its buffer size while we change sound format or speed so it is not compatible with OSS behaviour in this case. OSS mixer calls on opened dsp stream are not emulated so far because of problem with determining proper mixer element. Also in dmix case we have no virtual mixer.

Regards

Signature · 8 lines
Adam Tla/lka      mailto:[email protected]    ^v^ ^v^ ^v^
System  & Network Administration Group           ~~~~~~
Computer Center,  Gdansk University of Technology, Poland
PGP public key:   finger [email protected]


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
Quoted 1 line

From Windows to Linux, servers to mobile, InstallShield X is the one

installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504

#2 lore raw
Quoted 1 line · Adam Tla/lka

Try: configure; make; make install

Sorry - my mistake - use Makefile.ast ;-)

Regards

Signature · 8 lines
Adam Tla/lka      mailto:[email protected]    ^v^ ^v^ ^v^
System  & Network Administration Group           ~~~~~~
Computer Center,  Gdansk University of Technology, Poland
PGP public key:   finger [email protected]


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
Quoted 1 line

From Windows to Linux, servers to mobile, InstallShield X is the one

installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504