Re: Native sound system

2018-04-05 Thread Sid
> Thursday, April 05, 2018 at 2:24 AM, "Martin Husemann"
> libosssaudio.so is only a (tiny) compat shim on NetBSD (like 1000 lines of
> C code).
> 
> Adding newer OSS versions to that is more work, not less ;-)
> 
> But it certainly should be considered. We are currently at 0x030001.

Does anyone know how sndio from OpenBSD stacks up against 4Front's OSS v4? 
sndio is lightweight as well. I thought OSS version 4 was new as of last year, 
but it looks like it's been around longer. It also requires the proprietary 
drivers for some hardware 
(http://www.4front-tech.com/developer/sources/stable/bsd/oss-v4.2-build2017-src-bsd.txt),
 but being under a BSD license, open source drivers can be created, which means 
more work.

Both OSS and sndio are capable of interfacing hardware drivers or functioning 
as an API. Now I think we should look at the possibility of sndio for 
interfacing hardware, rather than OSS. I believe sndio can operate regular 
audio as well as MIDI.

> From Nathanial Sloss;
> NetBSD-8 features and in-kernel audio mixer with a sun audio/OSS compatible 
audio interface.

> Each instance of an open audio device provides a separate audio device to 
> each 
> audio application/audio server with independent software volume for each 
> channel.

> This makes it possible to run portaudio, SDL audio apps, pulseaudio, esd, 
> nas, 
> sun audio applications and OSS v4 applications, etc side by side.

> As for OSSv4 see:
> http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=46611

> I imported the necessary ioctls into libossaudio for compatibility with oss 
> v4 
> in 2014.  The exported oss version number is still lower than v4 as the mixer 
> control api is yet to be added.

So this is why only 1 device can play audio at once for most applications, 
while the hardware can already support multiple audio inputs.

> It makes it possible to use applications in package source that require oss 
> v4 
> support and these addition of an oss v4 compatible api has been essential for 
> many packages for quite some time.

I don't know if OSS version 4 from 2017 is backwards compatible with other 
versions or forks of OSS. Perhaps it is.

> As for midi, These devices should be supported by midi(4).  There are 
> usb/spkr(4) attachments as well as midi ports found on older sound cards.

> Additionally there is also the pseudo audio device pad(4) which allows audio 
> to be captured to file or used in conjuction with the bluetooth a2dp 
> streaming 
> daemon.

MIDI should already work as long as it has an API layer? (sndio works as such, 
not sure if the latest OSS does too)


Thanks to everyone who informed about MIDI's use in instruments and software. 
Sorry for repeating a another message, it delayed, then finally all of them 
went through (subscribing to the list should have fixed that).


Re: Native sound system

2018-04-05 Thread Nathanial Sloss
Hi,

NetBSD-8 features and in-kernel audio mixer with a sun audio/OSS compatible 
audio interface.

Each instance of an open audio device provides a seperate audio device to each 
audio application/audio server with independent software volume for each 
channel.

This makes it possible to run portaudio, SDL audio apps, pulseaudio, esd, nas, 
sun audio applications and OSS v4 applications, etc side by side.

As for OSSv4 see:
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=46611

I imported the necessary ioctls into libossaudio for compatibility with oss v4 
in 2014.  The exported oss version number is still lower than v4 as the mixer 
control api is yet to be added.

It makes it possible to use applications in package source that require oss v4 
support and these addition of an oss v4 compatible api has been essential for 
many packages for quite some time.

As for midi, These devices should be supported by midi(4).  There are 
usb/spkr(4) attachments as well as midi ports found on older sound cards.

Additionally there is also the pseudo audio device pad(4) which allows audio 
to be captured to file or used in conjuction with the bluetooth a2dp streaming 
daemon.

I hope this helps,

Best regards,

Nat


Re: Native sound system

2018-04-05 Thread Niels Dettenbach (Syndicat IT & Internet)
Am 5. April 2018 03:40:12 MESZ schrieb Sid :
>> Wednesday, April 04, 2018 at 6:32 AM; "Benny Siegert"
>
/, from OpenBSD, which can
>> handle MIDI frontends to a sound server (or directly to the
>hardware).
>>
>> Are people still using MIDI?
>

The amount of MIDI capable devices as the number of MIDI users is growing since 
years - mainly in the modern music scenes. Most music studios and more and more 
musicians today working with MIDI in any way.

The MIDI Ass. byself is still working on extensions and new versions of MIDI 
(i.e. more Controllers, new link media etc.), but the old MIDI standard / 
protocol design still is robust and widely used without any further changes 
over decades. Take a look into a modern music shop and count the amount of MIDI 
capable devices today (means DIN MIDI or USB-MIDI).

I think most MIDI application under NetBSD would be Desktop and headless 
audio/MIDI appliances (i.e. MIDI "routers" and similiar) if NetBSD would 
"provide" a reliable "MIDI stack" in any way.

In my own (commercial) music project studio MIDI is a core part for any musical 
data (beside audio) too.


just my two cents,

niels.
-- 
Niels Dettenbach
Syndicat IT & Internet
http://www.Syndicat.com


Re: Native sound system

2018-04-05 Thread Niels Dettenbach
Am Donnerstag, 5. April 2018, 02:37:38 CEST schrieb Aaron B.:
> But if you mean interfacing with hardware synthesizers made before 1999
> or so - then MIDI is the only way to go. There is still quite a bit of
> such equipment still in use that will be used until it dies.
> 
> Even modern USB based keyboards, knob boxes, and other such audio
> controllers often emulate a USB to MIDI interface to interact with
> software. This spares the expense of writing custom drivers.
USB-MIDI "is" part of the MIDI standard.

Nearly any new modern electronic instrument today is equipped with MIDI - as 
DIN MIDI oder USB-MIDI (or both). I.e. take a look into i.e. any larger music 
equipment shop today. And MIDI is not only used for instruments anymore - it 
is a widely used standard in quasi any modern / professional studio (in soft 
and hardware) for M&C applications and much morre.

The amount of MIDI capable devices worldwide ist still strongly growing. 
There was/is a kind of "renaissance of MIDI" which led the MIDI Association 
to work on a extended version of MIDI today.
https://www.midi.org/

so - for developers "outside" the music industry and scene - MIDI is far from 
"obsolete" or "small niche..." today...ß)



this jfyi.

many thanks,
best regards,


niels.


-- 
 ---
 Niels Dettenbach
 Syndicat IT & Internet
 http://www.syndicat.com
 PGP: https://syndicat.com/pub_key.asc
 ---
 








Re: Native sound system

2018-04-05 Thread Martin Husemann
On Thu, Apr 05, 2018 at 03:40:12AM +0200, Sid wrote:
> NetBSD current should jump to or try OSS version 4, to avoid redoing
> a lot of work.

libosssaudio.so is only a (tiny) compat shim on NetBSD (like 1000 lines of
C code).

Adding newer OSS versions to that is more work, not less ;-)

But it certainly should be considered. We are currently at 0x030001.

Martin