From owner-freebsd-ports@freebsd.org Mon Dec 18 16:28:25 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 47AD6E984E5 for ; Mon, 18 Dec 2017 16:28:25 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com [IPv6:2607:f8b0:4001:c06::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0AAE52788 for ; Mon, 18 Dec 2017 16:28:25 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-io0-x22a.google.com with SMTP id l10so10388362ioc.3 for ; Mon, 18 Dec 2017 08:28:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=78nFcM+uI/MpZaLCEYVSP5sIpDkH+kTyx21BdVc+CpE=; b=M/6wc4JYTOnyJiang4cCal7proT/02/bJ2V0ObVsJNq9kNDAtiyf4gqFqDwPKy/Js9 ghystq4ZYiHlKNlorJSHUFAnBWLcKhOjPdEtLdO6mDtRKPRUXX6Lq9ZX63ggI+8Ujtu7 3g00uvzAjnRhwrnLGlZxOJaNyr/AhGK6EBWEuaOylpVNwuUC3PlW9AzbYo1wcGvJV1xO CXe914dxUOea313QtKS5oM/h1H6qNyS7k5uAflLkqq/QboayfhneDcM7msfb8ORrKAHx /QmzkEE8guaM5ypHAkPP6Fvaqz7WeecoeyenIPNEvfxemAS+uqGyuuOtiAREpTSghqbb H7tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=78nFcM+uI/MpZaLCEYVSP5sIpDkH+kTyx21BdVc+CpE=; b=faOXVvjnidaBwF4pEvQw571FP+/BDdyweol5UJl4wUaAR34qNv7zicHEuoPK+DzF3G yvQwn1+JnFP4WVde65kXYe92XdS6I8MMiuoTiFLLP2B1NJ1O+r1mezyArfNe7gBDSYxr S2tiIdFl1ZndRsLrG7ZmiPZVydCi1v74PRQplSdpEuisw6ci8jqfiwxCDT8NhUUIyS5X RC1j74bK/ZvE2ifuZrqGlTLndWTRPgn3xQ2BvM28qVA8X0y4xAvix4UJQOJyDDFaDfIz hlsu9glWpuTpcRLGGFpB/8NJzBkwWufpk5QDPsP5yvI53lWvqSySGdPjk7ESsEbRfWBM nYpQ== X-Gm-Message-State: AKGB3mIVmVF9z2i1BRyp+YqeSNg1Tl7ZqlEursuz4GRQIgDYUiOx3Axs Gbl4VX7kKpHbr5rYTbgud0Fux1bVkR30pIuCzO0= X-Google-Smtp-Source: ACJfBovsSp9G4wmlHMrVKxlhBouN5F5YjWaaQ24Dqm6LD+Ud4jCwOdFYHKn38mP2c11pIIx64o88zcr1ssY6GS4vrPU= X-Received: by 10.107.162.131 with SMTP id l125mr396591ioe.153.1513614504159; Mon, 18 Dec 2017 08:28:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.164.203 with HTTP; Mon, 18 Dec 2017 08:28:23 -0800 (PST) In-Reply-To: <20171218171120.Horde.s5OngVFuRoftIluNHRvGOV6@webmail.leidinger.net> References: <20171218171120.Horde.s5OngVFuRoftIluNHRvGOV6@webmail.leidinger.net> From: blubee blubeeme Date: Tue, 19 Dec 2017 00:28:23 +0800 Message-ID: Subject: Re: OSS Audio To: Alexander Leidinger Cc: FreeBSD Ports Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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: Mon, 18 Dec 2017 16:28:25 -0000 On Tue, Dec 19, 2017 at 12:11 AM, Alexander Leidinger < Alexander@leidinger.net> wrote: > > Quoting Sid (from Sat, 16 Dec 2017 23:53:17 +0100): > > I've had a few misconceptions. >> >> Bluebee Blubeeme said, 4Front has a modern OSS implementation that is >> under a FreeBSD license. >> >> The model of Sound on FreeBSD is, three layers: >> 1. The API, where programs use libraries (of respective sound >> architecture) to access the sound server. >> 2. The sound server: OSS, Sndio, Portaudio, JACK, ALSA, native, etc >> 3. FreeBSD's base is always OSS (OpenBSD's driver is sndio); sound >> servers connect to and use this. >> > > It's a little bit different. > > From application to hardware it is like: > 5) application > 4) maybe some infrastructure layer (jack, portaudio) > 3) the API (for linux: ALSA libs, for FreeBSD: opening the device nodes > and issues ioctls = the OSS API) > 2) the kernel code > 1) the hardware > > So FreeBSD is a target from layer 2 until layer 3. Everything above > depends 100% on the application you are using. > > The part of OSS in name, that is a mess, is the API structure, and various >> implementations. In FreeBSD for instance, when a program uses an OSS API, I >> hear that developers, need to write so many patches, because different OSS >> frontends are not standardized. Most >> > > FreeBSD implements the OSSv4 API. Maybe not in v4.2, but those are > extensions are not really that much important for this discussion. The > important part is, that we support OSSv4 since about FreeBSD 8, and that > the main part of playing audio is not changed between 4.0 and 4.2, so it > doesn't matter much if we talk about the FreeBSD implementation of OSSv4 or > the 4Front implementation of OSSv4.2. > > The issues which come at hand are so far either at layer 5 or 4. For > issues at layer 3 I have not seen any prove or procedure how to repeat the > issue so far (and I'm interested to see a procedure so that we can repeat > the issue(s) people talk about here). > > > Bye, > Alexander. > > -- > http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF > http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF > there's the alsa-lib from audio/alsa-lib there's https://sourceforge.net/p/opensound/git/ci/master/tree/lib/libsalsa/ from oss that wraps alsa code, would there be issues with any of that in the kernel?