From owner-freebsd-multimedia@FreeBSD.ORG Sun Oct 28 12:28:05 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C7C1A3F1 for ; Sun, 28 Oct 2012 12:28:05 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id 48A878FC0A for ; Sun, 28 Oct 2012 12:28:04 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 336486750; Sun, 28 Oct 2012 13:22:57 +0100 From: Hans Petter Selasky To: sox-devel@lists.sourceforge.net Subject: Bug in sox-14.3.2/src/oss.c Date: Sun, 28 Oct 2012 13:24:36 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@ =?utf-8?q?d2+AyewRX=7DmAm=3BYp=0A=09=7CU=5B?=@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y> =?utf-8?q?Y=7Dk1C4TfysrsUI=0A=09-=25GU9V5=5DiUZF=26nRn9mJ=27=3F=26?=>O MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201210281324.36923.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2012 12:28:05 -0000 Hi, Line buffering should be off, but this statement leads to SOX reading 1 and one byte from the recording DSP device under FreeBSD: /* Change to non-buffered I/O */ setvbuf(ft->fp, NULL, _IONBF, sizeof(char) * file->size); return(SOX_SUCCESS); I think this flag should be used instead: _IOFBF fully buffered I've tested this change and it works like expected. Any comments? --HPS From owner-freebsd-multimedia@FreeBSD.ORG Mon Oct 29 02:52:46 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CA437221 for ; Mon, 29 Oct 2012 02:52:46 +0000 (UTC) (envelope-from chinalightsourcea@aliyun.com) Received: from smtpcm9-306.freemail.mail.aliyun.com (smtpcm9-306.freemail.mail.aliyun.com [110.75.46.6]) by mx1.freebsd.org (Postfix) with ESMTP id 4405A8FC08 for ; Mon, 29 Oct 2012 02:52:46 +0000 (UTC) Received: from WS-web by localhost(127.0.0.1) at Mon, 29 Oct 2012 10:36:06 +0800 Date: Mon, 29 Oct 2012 10:36:03 +0800 From: To: Message-ID: Subject: =?UTF-8?B?TEVEIHJvcGUgbGlnaHRzIA==?= X-Priority: 3 X-Mailer: Alimail-Mailagent MIME-Version: 1.0 X-Priority: 3 X-Mailer: Alimail-Mailagent revision 494994 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2012 02:52:46 -0000 =0aHello,=0a=c2=a0=0aWe are glad you are on the market for led lightings.=0a=c2= =a0=0aLight Source Industrial Limited =c2=a0here,main products are LED spots L= amp, and Bulbs,Tube Light, LED panel light, LED tree light, LED Christmas ligh= ts, and LED down light,LED acrylic motif lights, =c2=a0Please visit our compan= y website: www.cn-lightsource.com; if any item you are interested in, please c= ontact us at any time. =0a=c2=a0=0aI look forward to hearing from you! =0aBest= regards, =0aAlison zhang=0aLight Source Industrial Limited=c2=a0=0aTel: 0086 = 7525536816=0a=c2=a0=c2=a0=c2=a0=c2=a0=c2=a0 0086 75533696626=0aMobile: 0086153= 47451788=0aEmail: alisonzhangcn@163.com=0aHotmail: chinalightsource@hotmail.co= m=0awww.cn-lightsource.com=0askype: alisonzhangcn1=0a=c2=a0=0a=c2=a0=0a=c2=a0=0a= =c2=a0=0a=c2=a0=0a=c2=a0=0a=c2=a0=0a=c2=a0=0a=c2=a0=0a=0a=c2=a0 From owner-freebsd-multimedia@FreeBSD.ORG Mon Oct 29 10:20:01 2012 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 38C019ED for ; Mon, 29 Oct 2012 10:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 198948FC14 for ; Mon, 29 Oct 2012 10:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9TAK0QP022369 for ; Mon, 29 Oct 2012 10:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9TAK0do022368; Mon, 29 Oct 2012 10:20:00 GMT (envelope-from gnats) Date: Mon, 29 Oct 2012 10:20:00 GMT Message-Id: <201210291020.q9TAK0do022368@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org Cc: From: Frank Wuest Subject: Re: ports/172872: No video playback with multimedia/vlc &gt; X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Frank Wuest List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2012 10:20:01 -0000 The following reply was made to PR ports/172872; it has been noted by GNATS. From: Frank Wuest To: "bug-followup@FreeBSD.org" , "frankmwuest@yahoo.de" Cc: Subject: Re: ports/172872: No video playback with multimedia/vlc &gt; Date: Mon, 29 Oct 2012 10:10:40 +0000 (GMT) =0A=0AQuite possible.=A0 I've been able to resolve the graphics driver issu= e by switching to=0Axf86-video-ati613 (from the default xf86-video-ati), an= d that seems to have taken=0Acare of the vlc problem as well, i.e.=A0 now= =A0 vlc runs smoothly with standard output selected.=0AWith xf86-video-ati = the display sometimes got messed up, something about color=0Amapping/invers= ion. Looked quite psychedelic. This just hadn't bothered me too much =0Asin= ce it only occurred with ScummVM and when switching back from the console. From owner-freebsd-multimedia@FreeBSD.ORG Mon Oct 29 11:06:35 2012 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F1C77B44 for ; Mon, 29 Oct 2012 11:06:35 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D50F28FC15 for ; Mon, 29 Oct 2012 11:06:35 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9TB6Zvv028547 for ; Mon, 29 Oct 2012 11:06:35 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9TB6Z4r028545 for freebsd-multimedia@FreeBSD.org; Mon, 29 Oct 2012 11:06:35 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 29 Oct 2012 11:06:35 GMT Message-Id: <201210291106.q9TB6Z4r028545@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-multimedia@FreeBSD.org Subject: Current problem reports assigned to freebsd-multimedia@FreeBSD.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2012 11:06:36 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- f ports/172872 multimedia No video playback with multimedia/vlc >=2.0 o ports/172185 multimedia multimedia/vlc build fail with gmake core dump at modu o ports/172128 multimedia building multimedia/vlc fails o ports/171958 multimedia audio/fluidsynth: Update to version 1.1.6 o ports/171888 multimedia [PATCH] multimedia/gpac-libgpac: update to 0.5.0,1 o ports/171248 multimedia multimedia/win32-codecs: Fix pkg-plist o kern/171191 multimedia [snd_cmi] [request] add driver support for cmi8787/878 o ports/170517 multimedia [patch] Correct audio/jack Dependency Declaration o ports/170134 multimedia audio/denemo: Update to version 0.9.4 o ports/169563 multimedia [patch] audio/jack-rack o ports/165090 multimedia audio/faad missing head files o kern/162181 multimedia [snd_emu10k1] [patch] The kernel sound driver module s o ports/161783 multimedia [PATCH] multimedia/gpac-libgpac: Fix build with gcc46 o ports/161568 multimedia [PATCH] audio/libsamplerate: samplerate.h has comma at o ports/161546 multimedia [PATCH] multimedia/mkvtoolnix: make some dependencies o kern/159236 multimedia [pcm] [patch] set PCM_CAP_DEFAULT for the default snd o kern/158979 multimedia [snd_uadio] snd_uaudio fails to initialize built-in mi o kern/158542 multimedia [snd_hda] hdac0: hdac_get_capabilities: Invalid corb s f kern/158424 multimedia [snd_hda] snd_hda driver doesn't expose 'rec' flag for o stand/157050 multimedia OSS implementation lacks AFMT_FLOAT o kern/156198 multimedia [snd_hda] [hang] loading snd_hda kernel module hangs s o kern/156165 multimedia [hdac] Missing card definition for hdac audio device, o ports/153846 multimedia graphics/libcaca 0.99.beta17 - Hidden dependency on Xl a ports/153735 multimedia multimedia/vlc: install error: `Permission denied' for o kern/152622 multimedia [pcm] uaudio recording problem o kern/152500 multimedia [hdac] play interrupt timeout, channel dead o kern/152378 multimedia [sound][patch] Update snd_envy24ht to be MPSAFE and us f ports/150502 multimedia multimedia/gpac-libgpac 0.4.5_4,1 fails to compile on o kern/150284 multimedia [snd_hda] No gain with Audio o kern/149943 multimedia [pcm]: CS4236 audio problem o kern/148741 multimedia [sound] Headphones are deaf (do not work) on Lenovo Th o kern/147504 multimedia [oss] [panic] panic: dev_pager_getpage: map function r o kern/146031 multimedia [snd_hda] race condition when kldunload snd_hda sound o kern/144659 multimedia [pcm] The distortion of the sound playback of music at o kern/143505 multimedia [pcm] FreeBSD 8.0-RELEASE (x64) won't make sound card o kern/141826 multimedia [snd_hda] load of snd_hda module fails o kern/140591 multimedia [PATCH][sound] No sound output on lineout/headphone ja o kern/137589 multimedia [snd_uaudio] snd_uaudio.ko (USB audio driver) doesn't o kern/134767 multimedia [sound] [snd_hda] [regression] Sigmatel STAC9205X no s o kern/132848 multimedia [sound] [snd_emu10kx] driver problem with card init, s o kern/132511 multimedia [sound] [snd_hda] Probing ALC888 codec on ASRock K10N7 o kern/129604 multimedia [sound] Sound stops with error: pcm0:virtual:dsp0.vp0: o kern/127131 multimedia [bktr] /usr/src/sys/dev/bktr/bktr_os.c, line 469: wron s kern/125756 multimedia [sound] [patch] cannot detect soft-modem on HDA bus o kern/124319 multimedia [sound] [snd_emu10k1] [regression] Cannot record from o kern/122086 multimedia [sound] maestro sound driver is working, but mixer ini p kern/121156 multimedia [sound] [patch] Turn on inverted external amplifier se o kern/120857 multimedia [sound] [snd_emu10k1] snd_emu10k1 driver issues a warn o kern/120780 multimedia [sound] [snd_hda] snd_hda doesn't work on Dell Latitut o kern/119973 multimedia [sound] [snd_maestro] [regression] snd_maestro only wo o kern/119931 multimedia [sound] No sound card detected on ASUS "K8V-X SE R2.00 o kern/119759 multimedia [sound] [snd_emu10k1] [regression] Can not record anyt o kern/115300 multimedia [sound] [snd_hda] [regression] snd_hda(4) fails to att o kern/114760 multimedia [sound] [snd_cmi] snd_cmi driver causing sporadic syst o kern/111767 multimedia [sound] ATI SB450 High Definition Audio Controller sou o kern/107516 multimedia [sound] [snd_emu10k1] - skips, clicks and lag after a o kern/107051 multimedia [sound] only 2 channels output works for the ALC850 (o o kern/104874 multimedia [sound] [snd_emu10k1] kldload snd_emu10k1 hangs system o kern/101417 multimedia [sound] 4-speakers output not possible on Asus A8V-Del o kern/100859 multimedia [sound] [snd_ich] snd_ich broken on GIGABYTE 915 syste o kern/98752 multimedia [sound] Intel ich6 82801 FB - on Packard Bell A8810 la o kern/98504 multimedia [sound] Sound is distorted with SB Live 5.1 o kern/98496 multimedia [sound] [snd_ich] some functions don't work in my soun o kern/97609 multimedia [sound] Load Sound Module - VIA8233 - fails o kern/97535 multimedia [sound] [snd_mss] doesn't work in 6.0-RELEASE and abov o kern/96538 multimedia [sound] emu10k1-driver inverts channels o kern/95086 multimedia [sound] uaudio line in problem with sbdm lx o kern/94279 multimedia [sound] [snd_neomagic] snd_neomagic crashes on FreeBSD o kern/93986 multimedia [sound] Acer TravelMate 4652LMi pcm0 channel dead o kern/92512 multimedia [sound] distorted mono output with emu10k1 o kern/87782 multimedia [sound] snd_t4dwave and pcm0:record:0: record interrup o kern/82043 multimedia [sound] snd_emu10k1 - mixer does not work. o kern/81146 multimedia [sound] Sound isn't working AT ALL for Sis7012 onboard o kern/80632 multimedia [sound] pcm driver missing support for CMI8738 auxilla o kern/79912 multimedia [sound] sound broken for 2 VIA chipsets: interrupt sto o kern/79905 multimedia [sound] sis7018 sound module problem o kern/79678 multimedia [sound] sound works except recording from any source o conf/75137 multimedia [sound] add snd_* modules support to /etc/rc.d/mixer f kern/72995 multimedia [sound] Intel ICH2 (82801BA) - sound nearly inaudible o kern/63204 multimedia [sound] /dev/mixer broken with ESS Maestro-2E (still o o kern/60677 multimedia [sound] [patch] No reaction of volume controy key on I s kern/60599 multimedia [bktr] [partial patch] No sound for ATI TV Wonder (ste o kern/37600 multimedia [sound] [partial patch] t4dwave drive doesn't record. o kern/23546 multimedia [sound] [snd_csa] [patch] csa DMA-interrupt problem 84 problems total. From owner-freebsd-multimedia@FreeBSD.ORG Tue Oct 30 22:04:13 2012 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B2C76F07; Tue, 30 Oct 2012 22:04:13 +0000 (UTC) (envelope-from nox@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7CD048FC12; Tue, 30 Oct 2012 22:04:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9UM4D36033364; Tue, 30 Oct 2012 22:04:13 GMT (envelope-from nox@freefall.freebsd.org) Received: (from nox@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9UM4DDh033360; Tue, 30 Oct 2012 22:04:13 GMT (envelope-from nox) Date: Tue, 30 Oct 2012 22:04:13 GMT Message-Id: <201210302204.q9UM4DDh033360@freefall.freebsd.org> To: frankmwuest@yahoo.de, nox@FreeBSD.org, freebsd-multimedia@FreeBSD.org From: nox@FreeBSD.org Subject: Re: ports/172872: No video playback with multimedia/vlc >=2.0 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2012 22:04:13 -0000 Synopsis: No video playback with multimedia/vlc >=2.0 State-Changed-From-To: feedback->closed State-Changed-By: nox State-Changed-When: Tue Oct 30 22:04:12 UTC 2012 State-Changed-Why: Submitter notes issue is actually video driver related not due to vlc itself. Thanx! http://www.freebsd.org/cgi/query-pr.cgi?pr=172872 From owner-freebsd-multimedia@FreeBSD.ORG Wed Oct 31 09:11:23 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EDE509D2 for ; Wed, 31 Oct 2012 09:11:23 +0000 (UTC) (envelope-from normalperson@yhbt.net) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by mx1.freebsd.org (Postfix) with ESMTP id D7E018FC0C for ; Wed, 31 Oct 2012 09:11:23 +0000 (UTC) Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 3E7561F435; Wed, 31 Oct 2012 09:03:50 +0000 (UTC) Date: Wed, 31 Oct 2012 09:03:50 +0000 From: Eric Wong To: sox-devel@lists.sourceforge.net Subject: Re: [SoX-devel] Bug in sox-14.3.2/src/oss.c Message-ID: <20121031090350.GA8165@dcvr.yhbt.net> References: <201210281324.36923.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201210281324.36923.hselasky@c2i.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 09:11:24 -0000 Hans Petter Selasky wrote: > Hi, > > Line buffering should be off, but this statement leads to SOX reading 1 and > one byte from the recording DSP device under FreeBSD: > > /* Change to non-buffered I/O */ > setvbuf(ft->fp, NULL, _IONBF, sizeof(char) * file->size); > return(SOX_SUCCESS); > > I think this flag should be used instead: > > _IOFBF fully buffered > > I've tested this change and it works like expected. > > Any comments? The code you're changing in src/oss.c no long applies to SoX 14.4.0, how does 14.4.0 work out-of-the-box for you? From owner-freebsd-multimedia@FreeBSD.ORG Wed Oct 31 09:41:14 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F26E3FCC for ; Wed, 31 Oct 2012 09:41:14 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.c2i.net [212.247.155.2]) by mx1.freebsd.org (Postfix) with ESMTP id 81A438FC0C for ; Wed, 31 Oct 2012 09:41:14 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe09.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 164225479; Wed, 31 Oct 2012 10:36:06 +0100 From: Hans Petter Selasky To: sox-devel@lists.sourceforge.net Subject: Re: [SoX-devel] Bug in sox-14.3.2/src/oss.c Date: Wed, 31 Oct 2012 10:37:46 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <201210281324.36923.hselasky@c2i.net> <20121031090350.GA8165@dcvr.yhbt.net> In-Reply-To: <20121031090350.GA8165@dcvr.yhbt.net> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201210311037.46581.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org, Eric Wong X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 09:41:15 -0000 On Wednesday 31 October 2012 10:03:50 Eric Wong wrote: > Hans Petter Selasky wrote: > > Hi, > > > > Line buffering should be off, but this statement leads to SOX reading 1 > > and > > > > one byte from the recording DSP device under FreeBSD: > > /* Change to non-buffered I/O */ > > setvbuf(ft->fp, NULL, _IONBF, sizeof(char) * file->size); > > return(SOX_SUCCESS); > > > > I think this flag should be used instead: > > _IOFBF fully buffered > > > > I've tested this change and it works like expected. > > > > Any comments? > > The code you're changing in src/oss.c no long applies to SoX 14.4.0, > how does 14.4.0 work out-of-the-box for you? > Hi, First observation: oss.c: In function 'ossinit': oss.c:116: warning: dereferencing 'void *' pointer oss.c:116: error: request for member '_file' in something not a structure or union oss.c:124: warning: dereferencing 'void *' pointer oss.c:124: error: request for member '_file' in something not a structure or union oss.c:163: warning: dereferencing 'void *' pointer oss.c:163: error: request for member '_file' in something not a structure or union oss.c:176: warning: dereferencing 'void *' pointer oss.c:176: error: request for member '_file' in something not a structure or union oss.c:186: warning: dereferencing 'void *' pointer oss.c:186: error: request for member '_file' in something not a structure or union oss.c:205: warning: dereferencing 'void *' pointer oss.c:205: error: request for member '_file' in something not a structure or union oss.c:214: warning: dereferencing 'void *' pointer oss.c:214: error: request for member '_file' in something not a structure or union Fixed by renaming fileno( into sox_fileno( and defining this: #define sox_fileno(x) fileno((FILE *)(x)) Second observation: Default audio driver is not OSS. env AUDIODEVICE=/dev/dsp AUDIODRIVER=oss rec test.wav Third observation: GIO syscalls are still used, and the length is 1 byte. 15260 sox RET read 1 15260 sox CALL read(0x3,0x807b2de37,0x1) 15260 sox GIO fd 3 read 1 byte 0x0000 ff Patch needed: /* Change to non-buffered I/O */ setvbuf(ft->fp, NULL, _IONBF, sizeof(char) * file->size); return(SOX_SUCCESS); } Change to: /* Change to non-buffered I/O */ setvbuf(ft->fp, NULL, _IOFBF, sizeof(char) * file->size); return(SOX_SUCCESS); } --HPS From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 2 17:38:29 2012 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AC831749 for ; Fri, 2 Nov 2012 17:38:29 +0000 (UTC) (envelope-from portscout@null.zi0r.com) Received: from null.zi0r.com (null.zi0r.com [71.245.171.204]) by mx1.freebsd.org (Postfix) with ESMTP id 708808FC27 for ; Fri, 2 Nov 2012 17:38:29 +0000 (UTC) Received: from null.zi0r.com (localhost [127.0.0.1]) by null.zi0r.com (8.14.5/8.14.5) with ESMTP id qA2HbvTv072593 for ; Fri, 2 Nov 2012 13:38:28 -0400 (EDT) (envelope-from portscout@null.zi0r.com) Received: (from portscout@localhost) by null.zi0r.com (8.14.5/8.14.5/Submit) id qA2HZwRq060067; Fri, 2 Nov 2012 13:35:58 -0400 (EDT) (envelope-from portscout) Message-Id: <201211021735.qA2HZwRq060067@null.zi0r.com> MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain Date: Fri, 2 Nov 2012 13:35:58 -0400 From: portscout@portscout.zi0r.com To: multimedia@freebsd.org Subject: FreeBSD ports you maintain which are out of date X-Mailer: portscout/0.8.1 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2012 17:38:29 -0000 Dear port maintainer, The portscout new distfile checker has detected that one or more of your ports appears to be out of date. Please take the opportunity to check each of the ports listed below, and if possible and appropriate, submit/commit an update. If any ports have already been updated, you can safely ignore the entry. You will not be e-mailed again for any of the port/version combinations below. Full details can be found at the following URL: http://portscout.freebsd.org/multimedia@freebsd.org.html Port | Current version | New version ------------------------------------------------+-----------------+------------ audio/denemo | 0.9.2 | 0.9.6 ------------------------------------------------+-----------------+------------ audio/fluidsynth | 1.1.5 | 1.1.6 ------------------------------------------------+-----------------+------------ audio/gstreamer-plugins-cdparanoia | 0.10.36 | 0.11.90 ------------------------------------------------+-----------------+------------ audio/gstreamer-plugins-ogg | 0.10.36 | 0.11.90 ------------------------------------------------+-----------------+------------ audio/gstreamer-plugins-vorbis | 0.10.36 | 0.11.90 ------------------------------------------------+-----------------+------------ devel/gstreamer-plugins-gio | 0.10.36 | 0.11.90 ------------------------------------------------+-----------------+------------ devel/gstreamer-plugins-gnomevfs | 0.10.36 | 0.11.90 ------------------------------------------------+-----------------+------------ graphics/gstreamer-plugins-libvisual | 0.10.36 | 0.11.90 ------------------------------------------------+-----------------+------------ multimedia/avidemux2 | 2.5.6 | 2.6.0 ------------------------------------------------+-----------------+------------ multimedia/avidemux2-plugins | 2.5.6 | 2.6.0 ------------------------------------------------+-----------------+------------ multimedia/dvdstyler | 2.1 | 2.3.3 ------------------------------------------------+-----------------+------------ multimedia/gpac-libgpac | 0.4.5 | 0.5.0 ------------------------------------------------+-----------------+------------ multimedia/gstreamer | 0.10.36 | 0.11.90 ------------------------------------------------+-----------------+------------ multimedia/gstreamer-ffmpeg | 0.10.13 | 0.11.2 ------------------------------------------------+-----------------+------------ multimedia/gstreamer-plugins | 0.10.36 | 0.11.90 ------------------------------------------------+-----------------+------------ multimedia/gstreamer-plugins-theora | 0.10.36 | 0.11.90 ------------------------------------------------+-----------------+------------ multimedia/gstreamermm | 0.10.10.2 | 0.10.11 ------------------------------------------------+-----------------+------------ multimedia/mp4v2 | 1.9.1 | 2.0.0 ------------------------------------------------+-----------------+------------ multimedia/vlc | 2.0.3 | 2.0.4 ------------------------------------------------+-----------------+------------ textproc/p5-xmltv | 0.5.61 | 0.5.63 ------------------------------------------------+-----------------+------------ x11-toolkits/gstreamer-plugins-pango | 0.10.36 | 0.11.90 ------------------------------------------------+-----------------+------------ If any of the above results are invalid, please check the following page for details on how to improve portscout's detection and selection of distfiles on a per-port basis: http://portscout.freebsd.org/info/portscout-portconfig.txt If wish to stop receiving portscout reminders, please contact portscout@portscout.freebsd.org Thanks.