Re: OpenBSD sound system
Alfonso Sabato Siciliano wrote: hello, I am willing to know the sound system of OpenBSD, so I started to read the manpages. I summarized with a graph below, it is right? I'm not the expert but it seems about right to me. I think you could draw two additional connections for raw device access. One from sio_open(3) to audio(4) (rsnd) and one from mio_open(3) to midi(4) (rmidi).
Re: OpenBSD sound system
On Fri, Dec 19, 2014 at 04:28:38AM +0100, Alfonso Sabato Siciliano wrote: hello, I am willing to know the sound system of OpenBSD, so I started to read the manpages. I summarized with a graph below, it is right? Yes this is right. Note that pograms can bypass sndiod seamlessly and use sio_xxx and mio_xxx functions to connect directly to the audio(4) and midi(4) layers. This is determined at runtime by sio_open() and mio_open() arguments and/or environment variables.
Re: OpenBSD sound system
I have update the graph about the sound system On Fri, 19 Dec 2014 14:38:49 +0100 Alexandre Ratchov a...@caoua.org wrote: Yes this is right. Note that pograms can bypass sndiod seamlessly and use sio_xxx and mio_xxx functions to connect directly to the audio(4) and midi(4) layers. This is determined at runtime by sio_open() and mio_open() arguments and/or environment variables. and I have added the border between userspace and kernelspace (I hope it is right now). |--| |--| |--| | app1 | | app2 | | appN | |--| |--| |--| || | \|/ \|/ \|/ |---| |sndio.h| | sio_open(3)/mio_open(3) | | interface to audio devices and MIDI streams | |---| || | | \|/ | ||---| | ||sndiod(1) | | || audio/midi server | | ||---| | ||| | User ||| | space - ||| | Kernel ||| | space \|/ \|/ \|/ \|/ || |-| | audio(4) | | midi(4) | | device-independent | | raw device | | driver layer | | independent | || | interface | | |-| | | \|/ \|/ |-| |device dependent driver | | (azalia(4), ac97(4), ...) | |-| | \|/ |--| | [audio][MIDI] | | | | Hardware| |--| Regards Alfonso -- Alfonso Sabato Siciliano alfi...@gmail.com
OpenBSD sound system
hello, I am willing to know the sound system of OpenBSD, so I started to read the manpages. I summarized with a graph below, it is right? sndio(7): The sndio audio and MIDI system provides access to audio and MIDI hardware and to services provided by sndiod, summarized below. |--| |--| |--| | app1 | | app2 | | appN | |--| |--| |--| || | \|/ \|/ \|/ |---| |sndio.h| | sio_open(3)/mio_open(3) | | interface to audio devices and MIDI streams | |---| | \|/ |---| | sndiod(1) | | audio/midi server | |---| | | \|/ \|/ || |-| | audio(4) | | midi(4) | | device-independent | | raw device | |driver layer| | independent | || | interface | ||-| | | \|/ \|/ |-| |device dependent driver | | (azalia(4), ac97(4), ...) | |-| | \|/ |--| | [audio][MIDI] | | | | Hardware| |--| Regards Alfonso -- Alfonso Sabato Siciliano alfi...@gmail.com
Re: OpenBSD sound system
On 19.12.2014 04:28, Alfonso Sabato Siciliano wrote: hello, I am willing to know the sound system of OpenBSD, so I started to read the manpages. I summarized with a graph below, it is right? You may want to read these two as well http://www.openbsd.org/papers/asiabsdcon2010_sndio_slides.pdf http://www.openbsd.org/papers/asiabsdcon2010_sndio.pdf sndio(7): The sndio audio and MIDI system provides access to audio and MIDI hardware and to services provided by sndiod, summarized below. |--| |--| |--| | app1 | | app2 | | appN | |--| |--| |--| || | \|/ \|/ \|/ |---| |sndio.h| | sio_open(3)/mio_open(3) | | interface to audio devices and MIDI streams | |---| | \|/ |---| | sndiod(1) | | audio/midi server | |---| | | \|/ \|/ || |-| | audio(4) | | midi(4) | | device-independent | | raw device | |driver layer| | independent | || | interface | ||-| | | \|/ \|/ |-| |device dependent driver | | (azalia(4), ac97(4), ...) | |-| | \|/ |--| | [audio][MIDI] | | | | Hardware| |--| Regards Alfonso -- Alfonso Sabato Siciliano alfi...@gmail.com