Skip to contentSkip to conversation

Set up buffers for individual channels?

DISCUSSION [email protected] 2 participants 4 messages Apr 7, 2003 – Apr 9, 2003

lore
Share & tools
lore
#0 lore raw

After browsing through the ASIO SDK I see that one can enable individual channels of a card, and only enabled channels will have a buffer set up for them. Is there a similar way to specify the exact channels one wants to access using Alsa (instead of simply number of channels)?

-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/

#1 lore raw

At Mon, 7 Apr 2003 23:49:06 +0200,

Quoted 5 lines · [email protected] wrote:

After browsing through the ASIO SDK I see that one can enable individual channels of a card, and only enabled channels will have a buffer set up for them. Is there a similar way to specify the exact channels one wants to access using Alsa (instead of simply number of channels)?

how about accessing via non-interleaved mode?

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/

#2 lore raw

Quoting Takashi Iwai <[email protected]>:

Quoted 12 lines

At Mon, 7 Apr 2003 23:49:06 +0200,

Quoted 5 lines · [email protected] wrote:

After browsing through the ASIO SDK I see that one can enable individual channels of a card, and only enabled channels will have a buffer set up for

them. Is there a similar way to specify the exact channels one wants to

access

Quoted 1 line

using Alsa (instead of simply number of channels)?

how about accessing via non-interleaved mode?

I'm experimenting with non-interleaved mmap now, but I can't say I understand the workings of Alsa yet. From what I can see Alsa sets up memory areas for the requested amount of channels (from 0 to 9 for instance), so I can choose myself which buffers to actually use? I was thinking I could perhaps specify _which_ channels I want to use, and get handed buffers for only those channels. No biggie, just need to get to know the interface a bit more.

A

-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/

#3 lore raw

At Tue, 8 Apr 2003 20:38:16 +0200,

Quoted 11 lines · [email protected] wrote:

Quoting Takashi Iwai <[email protected]>:

Quoted 8 lines

At Mon, 7 Apr 2003 23:49:06 +0200,

Quoted 5 lines · [email protected] wrote:

After browsing through the ASIO SDK I see that one can enable individual channels of a card, and only enabled channels will have a buffer set up for

them. Is there a similar way to specify the exact channels one wants to

access

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

using Alsa (instead of simply number of channels)?

how about accessing via non-interleaved mode?

I'm experimenting with non-interleaved mmap now, but I can't say I understand the workings of Alsa yet. From what I can see Alsa sets up memory areas for the requested amount of channels (from 0 to 9 for instance), so I can choose myself which buffers to actually use?

basically, you cannot give the buffer pointers from your side. the buffer pointer will be given by the driver.

Quoted 3 lines

I was thinking I could perhaps specify _which_ channels I want to use, and get handed buffers for only those channels.

yes, in the case of non-interleaved mode, a single buffer will be split for each channel. so you can access them apparently as if they are different buffers.

you can check aplay.c for the non-interleaved playback/recording case.

ciao,

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf