From owner-freebsd-multimedia@freebsd.org  Tue Dec 19 13:56:01 2017
Return-Path: <owner-freebsd-multimedia@freebsd.org>
Delivered-To: freebsd-multimedia@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 D8E05E845CE
 for <freebsd-multimedia@mailman.ysv.freebsd.org>;
 Tue, 19 Dec 2017 13:56:01 +0000 (UTC) (envelope-from hps@selasky.org)
Received: from mail.turbocat.net (turbocat.net [88.99.82.50])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 97EC9797F2
 for <freebsd-multimedia@freebsd.org>; Tue, 19 Dec 2017 13:56:01 +0000 (UTC)
 (envelope-from hps@selasky.org)
Received: from hps2016.home.selasky.org (unknown [62.141.128.70])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by mail.turbocat.net (Postfix) with ESMTPSA id 88854261A94;
 Tue, 19 Dec 2017 14:55:52 +0100 (CET)
Subject: Re: FreeBSD amd64 GENERIC kernel
To: blubee blubeeme <gurenchan@gmail.com>
Cc: Alexander Leidinger <Alexander@leidinger.net>,
 freebsd-multimedia@freebsd.org
References: <CALM2mEnnXKAyF_ti_zKYt=1m-ZTfjH5di1cayYjGM4hi9dOxRQ@mail.gmail.com>
 <20171216011614.Horde.Uitm74qhBEwh_NRo9RgDgu3@webmail.leidinger.net>
 <CALM2mEm0WWqHx=67tPf9_ah1PAfUEirREpTiRmvEKxZ_YR7u-g@mail.gmail.com>
 <20171216143349.Horde.VJOddyv79ydlAmvsvoTRhMP@webmail.leidinger.net>
 <CALM2mEkhFVbDKVbx-1BcP355-mOqfsYUeDOPkVisWT3_6AKh2g@mail.gmail.com>
 <20171218161614.Horde.rLEhw6yp6nTppNjkXU-WxBF@webmail.leidinger.net>
 <CALM2mE=eDY0+1-O4HWLJ2C-FG_tjRb7goX1D_1WkmPiw_bB+=g@mail.gmail.com>
 <20171218183353.Horde.xayrSeFXKKiQwenaLS-GOsK@webmail.leidinger.net>
 <CALM2mEkhz4PgSeHq5TNp=5CnxtrFYPzMq_73uF3qUjz5KQ9wrA@mail.gmail.com>
 <20171219122952.Horde.2UnAC3-TFrteTTD2_YJXPpJ@webmail.leidinger.net>
 <d7b792a6-0b09-226c-d3cc-9b47cb0bd4d3@selasky.org>
 <CALM2mE=BTu_ON6TYR0NbOhk8F=w2F7NY6wd14pgqrf67B3BGBQ@mail.gmail.com>
 <603cca63-2689-432e-dd07-d08bf8e1ee4c@selasky.org>
 <CALM2mE=Fp-mZBQ6BePFSfWjdiuXyQAuJkF4M1wKaUwQxHwu6CA@mail.gmail.com>
From: Hans Petter Selasky <hps@selasky.org>
Message-ID: <c86907a1-ab49-4617-7267-c7912386bc04@selasky.org>
Date: Tue, 19 Dec 2017 14:53:04 +0100
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101
 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <CALM2mE=Fp-mZBQ6BePFSfWjdiuXyQAuJkF4M1wKaUwQxHwu6CA@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-BeenThere: freebsd-multimedia@freebsd.org
X-Mailman-Version: 2.1.25
Precedence: list
List-Id: Multimedia discussions <freebsd-multimedia.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-multimedia>, 
 <mailto:freebsd-multimedia-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-multimedia/>
List-Post: <mailto:freebsd-multimedia@freebsd.org>
List-Help: <mailto:freebsd-multimedia-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-multimedia>, 
 <mailto:freebsd-multimedia-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 19 Dec 2017 13:56:01 -0000

On 12/19/17 13:57, blubee blubeeme wrote:
> That still leaves my last question unanswered, where does one start
> if they want to program audio applications on FreeBSD?

Hi,

You should start by looking at existing OSSv4 compatible audio 
applications already in FreeBSD ports and in FreeBSD base and compare 
how they use the OSSv4 interface(s).

I have the impression you already know how various IOCTLs and defines 
are named in "sys/soundcard.h" and you can simply grep for the 
occurrence of these. Even just looking for the string "#include 
<sys/soundcard.h>" might be good enough for a start. For example if you 
have some gigabytes of disk space, run "make fetch extract" in all 
subfolders inside "/usr/ports/audio" and then grep through the extracted 
sources.

--HPS