9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Mixer-FS
@ 2008-01-17  9:11 Enrico Weigelt
  2008-01-17  9:20 ` Gabriel Diaz
  0 siblings, 1 reply; 4+ messages in thread
From: Enrico Weigelt @ 2008-01-17  9:11 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


Hi folks,

is there already an specification for an mixer-fs, which allows 
controlling an audio mixer via 9P ?


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Mixer-FS
  2008-01-17  9:11 [9fans] Mixer-FS Enrico Weigelt
@ 2008-01-17  9:20 ` Gabriel Diaz
  2008-01-17  9:48   ` Federico G. Benavento
  0 siblings, 1 reply; 4+ messages in thread
From: Gabriel Diaz @ 2008-01-17  9:20 UTC (permalink / raw)
  To: weigelt, Fans of the OS Plan 9 from Bell Labs

hello

the audio drivers presents a fs to you, so /dev/volume (for pci cards)
or /dev/audioctl (for usb ones) are the files to speak to, and the
data you write to them are in a 9p-write call :-?

take a look at the varous slider.c in /contrib (fgb did one for me time ago)

iirc its use was slider | some_parse_here > /dev/volume

slds.

gabi


On Jan 17, 2008 10:11 AM, Enrico Weigelt <weigelt@metux.de> wrote:
>
> Hi folks,
>
> is there already an specification for an mixer-fs, which allows
> controlling an audio mixer via 9P ?
>
>
> cu
> --
> ---------------------------------------------------------------------
>  Enrico Weigelt    ==   metux IT service - http://www.metux.de/
> ---------------------------------------------------------------------
>  Please visit the OpenSource QM Taskforce:
>        http://wiki.metux.de/public/OpenSource_QM_Taskforce
>  Patches / Fixes for a lot dozens of packages in dozens of versions:
>        http://patches.metux.de/
> ---------------------------------------------------------------------
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Mixer-FS
  2008-01-17  9:20 ` Gabriel Diaz
@ 2008-01-17  9:48   ` Federico G. Benavento
  2008-01-18 13:26     ` Enrico Weigelt
  0 siblings, 1 reply; 4+ messages in thread
From: Federico G. Benavento @ 2008-01-17  9:48 UTC (permalink / raw)
  To: 9fans

> take a look at the varous slider.c in /contrib (fgb did one for me time ago)

slider is at /n/sources/contrib/fgb/cmd/slider.c it uses control(2)
and accepts -c col1 col2 col2, the idea was to have several slider's
one per mixer opt, volume, etc. hence the colors opts

% slider | while(v=`{read}){echo volume $v > /dev/volume}


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Mixer-FS
  2008-01-17  9:48   ` Federico G. Benavento
@ 2008-01-18 13:26     ` Enrico Weigelt
  0 siblings, 0 replies; 4+ messages in thread
From: Enrico Weigelt @ 2008-01-18 13:26 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

* Federico G. Benavento <benavento@gmail.com> wrote:
> > take a look at the varous slider.c in /contrib (fgb did one for me time ago)
> 
> slider is at /n/sources/contrib/fgb/cmd/slider.c it uses control(2)
> and accepts -c col1 col2 col2, the idea was to have several slider's
> one per mixer opt, volume, etc. hence the colors opts
> 
> % slider | while(v=`{read}){echo volume $v > /dev/volume}

hmm, I'm not sure if this is what I'm looking for. 
I'd like to have an filesystem representation of an mixer 
device's status - separated by channel.

For example, per mixer device tree:


/name			        verbose device name
/channels/			subdir for channels
         /pcm			channel named "pcm"
             /name              verbose channel name (eg. "PCM")
	     /mute		boolean flag for muting
	     /volume-r		right side volume
	     /volume-l		left side volume
         /mic                   channal named "mic"
	  ...
	  
	  
cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-18 13:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-17  9:11 [9fans] Mixer-FS Enrico Weigelt
2008-01-17  9:20 ` Gabriel Diaz
2008-01-17  9:48   ` Federico G. Benavento
2008-01-18 13:26     ` Enrico Weigelt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).