From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 231541F66E for ; Tue, 11 Aug 2020 14:40:25 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1k5VRo-0004sU-UK; Tue, 11 Aug 2020 14:40:16 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5VRn-0004sL-Nk for sox-devel@lists.sourceforge.net; Tue, 11 Aug 2020 14:40:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=JWD1waUSCP11hV1fvNTbTctYioLhQuUdfaNCJ07zPuM=; b=LyLy71nvkP1kM1A1BVUAKFyZDV GPn/+xV7bB9H9mtxK1aQVmMhbvxz+XwVjqpkxSwti78ZWIoOGobWrnYcBrgnhqbyRvPL4WikNCryH tnuPRCM86Ype8zPI6AJHAbdCjiyarX2tqk+k45P8IKueoklgIVAkkhDC8mQ9CKvmiEtI=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To :From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=JWD1waUSCP11hV1fvNTbTctYioLhQuUdfaNCJ07zPuM=; b=VtyXLe65wdd9vZu8DfYCHKJdoY NJSEyWjxBKFOyFyYvjVR5BGLcMut4eM2cREH3MZRwlcP3JsZKQKO0t9qL5FM8YEXpxOaQ+wxDK4Aj ykwOXkYX3yDYsph4ZjkXoJsuLJybKCF9ZB+nG1/FigJjJBfUoNaHHWmeTMh6Yx4pfrJc=; Received: from uvt.stare.cz ([185.63.96.79] helo=mx.stare.cz) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1k5VRl-001Gxk-O8 for sox-devel@lists.sourceforge.net; Tue, 11 Aug 2020 14:40:15 +0000 Received: from localhost (stare.cz [local]) by stare.cz (OpenSMTPD) with ESMTPA id a7ebb06d; Tue, 11 Aug 2020 16:40:04 +0200 (CEST) Date: Tue, 11 Aug 2020 16:40:03 +0200 From: Jan Stary To: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= Message-ID: <20200811144002.GC63033@www.stare.cz> References: <20200810121707.29623-1-mans@mansr.com> <20200811133407.GA88171@www.stare.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Headers-End: 1k5VRl-001Gxk-O8 Subject: Re: [PATCH] oss: remove check for machine/soundcard.h and libossaudio X-BeenThere: sox-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-devel@lists.sourceforge.net Cc: sox-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: sox-devel-bounces@lists.sourceforge.net On Aug 11 14:58:20, mans@mansr.com wrote: > > Current SoX git builds and runs fine on OpenBSD > > (except the recent -Wl,--as-needed) using sndio, > > if ./configure'd right. The OpenBSD port of SoX 14.4.2 > > http://cvsweb.openbsd.org/ports/audio/sox/Makefile?rev=1.72 > > explicitly builds --without-oss --without-sunaudio --with-sndio > > > > In fact, these options are necessary (that is to say, > > the autodetection is broken); when ./configure'd without options, > > it detects each of sndio, ossaudio and sunaudio, and fails with > > > > sox.c: In function 'adjust_volume': > > sox.c:1337: error: 'audio_info_t' undeclared (first use in this function) > > sox.c:1337: error: (Each undeclared identifier is reported only once > > sox.c:1337: error: for each function it appears in.) > > sox.c:1337: error: expected ';' before 'audio_info' > > sox.c:1338: error: 'AUDIO_GETINFO' undeclared (first use in this function) > > sox.c:1338: error: 'audio_info' undeclared (first use in this function) > > sox.c:1341: warning: implicit declaration of function 'AUDIO_INITINFO' > > sox.c:1345: error: 'AUDIO_SETINFO' undeclared (first use in this function) > > > > (These are artifacts of sunaudio, right?) > > That's what it looks like. Does OpenBSD have an audioio.h file for some > other purpose? There is , see http://man.openbsd.org/audio Apparently, this is the uniform audio HW abstraction implemented by the individual audio card drivers: ./dev/pci/auacer.c:#include ./dev/pci/auglx.c:#include ./dev/pci/auich.c:#include ./dev/pci/auixp.c:#include ./dev/pci/autri.c:#include ./dev/pci/auvia.c:#include [...] > > A naive 'grep -Fr audio_info_t .' reveals that SoX ships with > > > > src/bit-rot/ > > src/bit-rot/CoreAudio > > src/bit-rot/CoreAudio/CoreAudio.h > > src/bit-rot/mmreg.h > > src/bit-rot/mmsystem.h > > src/bit-rot/sndio.h > > src/bit-rot/sys > > src/bit-rot/sys/audioio.h > > src/bit-rot/windows.h > > > > What are these for? > > Probably to compile-test the related source files on other systems. I don't understand: what compile-test? Why do we have e.g. src/bit-rot/sndio.h? If we are on a sndio system (such as OpenBSD), there will be a sndio.h we can use; on other systems, how would we use src/bit-rot/sndio.h? > Yes, sorry about that. Does it still mis-detect it with that fixed? Not oss; sunaudio is still mis-detected though, see above. > > (God I hate autotools.) > > I hate cmake more. That goes without saying :-) Jan _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel