* Set up buffers for individual channels?
@ 2003-04-07 21:49 knuarv
2003-04-08 15:53 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: knuarv @ 2003-04-07 21:49 UTC (permalink / raw)
To: alsa-devel
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Set up buffers for individual channels?
2003-04-07 21:49 Set up buffers for individual channels? knuarv
@ 2003-04-08 15:53 ` Takashi Iwai
2003-04-08 18:38 ` knuarv
0 siblings, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2003-04-08 15:53 UTC (permalink / raw)
To: knuarv; +Cc: alsa-devel
At Mon, 7 Apr 2003 23:49:06 +0200,
knuarv@nith.no 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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Set up buffers for individual channels?
2003-04-08 15:53 ` Takashi Iwai
@ 2003-04-08 18:38 ` knuarv
2003-04-09 9:22 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: knuarv @ 2003-04-08 18:38 UTC (permalink / raw)
To: alsa-devel
Quoting Takashi Iwai <tiwai@suse.de>:
> At Mon, 7 Apr 2003 23:49:06 +0200,
> knuarv@nith.no 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?
>
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Set up buffers for individual channels?
2003-04-08 18:38 ` knuarv
@ 2003-04-09 9:22 ` Takashi Iwai
0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2003-04-09 9:22 UTC (permalink / raw)
To: knuarv; +Cc: alsa-devel
At Tue, 8 Apr 2003 20:38:16 +0200,
knuarv@nith.no wrote:
>
> Quoting Takashi Iwai <tiwai@suse.de>:
>
> > At Mon, 7 Apr 2003 23:49:06 +0200,
> > knuarv@nith.no 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?
> >
> 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.
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-04-09 9:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-07 21:49 Set up buffers for individual channels? knuarv
2003-04-08 15:53 ` Takashi Iwai
2003-04-08 18:38 ` knuarv
2003-04-09 9:22 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.