From owner-freebsd-ports@freebsd.org Fri Dec 15 23:05:47 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3EB9FE8EC61 for ; Fri, 15 Dec 2017 23:05:47 +0000 (UTC) (envelope-from sid@bsdmail.com) Received: from mout.gmx.com (mout.gmx.com [74.208.4.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mail.gmx.com", Issuer "thawte SSL CA - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E4A2868ABA for ; Fri, 15 Dec 2017 23:05:46 +0000 (UTC) (envelope-from sid@bsdmail.com) Received: from [108.70.50.7] ([108.70.50.7]) by 3c-app-mailcom-lxa04.server.lan (via HTTP); Sat, 16 Dec 2017 00:05:28 +0100 MIME-Version: 1.0 Message-ID: From: Sid To: freebsd-ports@freebsd.org, yuri@rawbw.com, fjwcash@gmail.com, gurenchan@gmail.com Subject: Re: OSS Audio Content-Type: text/plain; charset=UTF-8 Date: Sat, 16 Dec 2017 00:05:28 +0100 Importance: normal Sensitivity: Normal Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-Provags-ID: V03:K1:rFyR1YJVk0tkOOYALFYgUxrwxU5FZJ6og+8VAw58mQo 5QTwwnG74mzpS3JZ8jlj4Rd6HsB6N8/2ZhU1G/fmvxwoDiEKN2 RjhENYqEebStn9KGfD1yyz1wJVEWfv4khgqC5cdqRt23iSiqHl /zYQ0Yw6vbfpHBPq862WKCESjocCk0vu1eQzR7fwRBjlY80DbD m7kirfcJpz4LxMDhvhXNyw7vK2I6NKtQ3SooxwkE9ueQyECvZw GqBmY2mA4BTODC7FSxBPMAm8tpTRjHq8z2SwLfutaddH1HqpYx ccC4mI= X-UI-Out-Filterresults: notjunk:1;V01:K0:0HB8MfBy8mE=:x3Y6I6npNFEdoZIus4/Vc7 OwdfD+nZOa2j/EZki0xdJK+FS+H+ID30pwHnZ667n8NMfVbNtv/eLiKZ2TfEBgghlUtZtVspo uMBm2qCoQTdxf1LPH5UusQiklL1Sdf9T9GdMoamjN7L3i8x0eEdwL9Co3H4zmLjHIQd5w3Y5r kENukoTUEAHA4UJO9Q/u4Y5LJFNUF4WSy2JhWzzul00wjGtV32LFWPwcy7H9nsqof0V9trwgC 0IsFztEf3JVTtF3dqpbNJ3Dv++VkP42juWVlGFo1UKAMFP+Mdyyf4Hl+0Wq5QKvyAQmPY+bwy n53tHhMH2Ur/ciz52f4EVYoW64myj6JMtcYlnW2fXsgd8QoVLy3aLf0bGJkoFfL85qZqjQoM4 X7JO4NNPo+omnjA1rzhunERz8gUDu0YzOAJvpnHDW8IjfCtA6D4Jd4+1rwVjkVU0T2U11I71c 3JkGYt8arcn7JmaMu9wCB09iuUYWNxPSM7kFgX732rxXqyeToNFPIUWUTCPjFMOwQWTKsG0iX v2JgPp734nkzhYX061/LK3Lh5Fcj9/lsOhofrPgJfdz X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2017 23:05:47 -0000 > Yuri; Fri Dec 15 20:22:24 UTC 2017 > Jack isn't needed in theory, but OSS drivers for many popular sound=20 > devices don't support midi=2E PCI audio devices generally don't support= =20 > midi, only USB ones do=2E So if you want midi, you have to go with=20 > soft-midi (ex=2E Jack+fluidsynth)=2E > Jack is a very powerful audio server, though a bit buggy=2E sndiod covers MIDI hardware, which is installed by audio/sndio Now I get it, I think she is looking for MIDI, and driver capabilities for= physical hardware=2E > Freddie Cash; Fri Dec 15 16:22:36 UTC 2017 =E2=80=8B> FreeBSD has had the ability to play sounds from multiple progra= ms > simultaneously since the 4=2Ex days=2E Back then, the kernel developed = a > "virtual channels" layer to accommodate this (program X uses /dev/dsp0, > program Y uses /dev/dsp1, program Z uses /dev/dsp2, audio is mixed and > played out the speakers together)=2E Later this was done automatically = by > multiple programs simply accessing /dev/dsp=2E This was my misconception=2E I think what happened is, the frontend/API fo= r many programs from the portstree got improved this year, when sndio was brought over allowing dif= ferent programs to access these drivers at once=2E It was easier for them to bring make th= ose adjustments, when it was fixed for that other operating system=2E This is a description of sndio on FreeBSD=2E https://forums=2Efreebsd=2Eorg/threads/62892/#post-363265 https://forums=2Efreebsd=2Eorg/threads/43417/#post-368500 >From what I understand is, that OSS and Sndio have their drivers in the /d= ev/ directory, and separately have a frontend or API to connect to user programs=2E OSS hardware drivers are compiled into the kernel or started as modules=2E Sndiod hardware drivers can also be turned on, to be seen in /dev/=2E > blubee blubeeme; > If you want to test for yourself, install audio/oss then run osstest and > report back=2E The program audio/oss is a frontend=2E FreeBSD by default uses OSS hardwar= e drivers, as that's what most sound devices in /dev/ are=2E To use a newer OSS backe= nd/hardware driver, you'd have to get updated source if available, and recompile your kernel= =2E It's not that FreeBSD is limiting features, it is more that, OSS is a clus= ter of complexities, when it is brought to FreeBSD, it is cleaned up, trimmed, and made efficie= nt for this OS=2E Different frontends/API's (ALSA, JACK, PULSEAUDIO, OSS, SNDIO, native APIs= ) just work together on top of FreeBSD's native OSS hardware driver=2E