Skip to contentSkip to conversation

mutli channel

DISCUSSION ljp 2 participants 3 messages Feb 1, 2003 – Feb 2, 2003

lore
Share & tools
lore

ljp

author
#0 lore raw

I have a couple questions....

1) does alsa have support for multichannel output? If so, how would one go about sending individual signals to channels 1-8?

2) I am not real clear on how to use the mixer. What would be the bare minimum steps to get the main volume?

thanks.
ljp

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

author
#1 lore raw
Quoted 2 lines · ljp

2) I am not real clear on how to use the mixer. What would be the bare minimum steps to get the main volume?

to answer my own question, perhaps. minimal to get volume:

snd_mixer_open
snd_mixer_attach
snd_mixer_selem_register
snd_mixer_load

for{} through the elements

if( snd_mixer_selem_is_active
if( snd_mixer_selem_has_common_volume
if( snd_mixer_selem_has_playback_volume

snd_mixer_selem_get_playback_volume

correct?
ljp

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

#2 lore raw
In reply to ljp
Quoted 1 line

1) does alsa have support for multichannel output? If so, how would one go

of course.

Quoted 1 line

about sending individual signals to channels 1-8?

depends on the access format: interleaved or non-interleaved. it also depends on whether you are using read/write access or mmap-based access.

so you have to get a bit more specific with your question before we can answer it.

--p

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com