From owner-freebsd-questions@FreeBSD.ORG Mon Dec 13 06:32:48 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB3D216A4CE for ; Mon, 13 Dec 2004 06:32:48 +0000 (GMT) Received: from sccimhc91.asp.att.net (sccimhc91.asp.att.net [63.240.76.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58B9C43D41 for ; Mon, 13 Dec 2004 06:32:48 +0000 (GMT) (envelope-from freebsd@nbritton.org) Received: from [192.168.1.10] (12-223-129-46.client.insightbb.com[12.223.129.46]) by sccimhc91.asp.att.net (sccimhc91) with ESMTP id <20041213063247i9100rfuqfe>; Mon, 13 Dec 2004 06:32:47 +0000 Message-ID: <41BD3789.5070402@nbritton.org> Date: Mon, 13 Dec 2004 00:32:41 -0600 From: Nikolas Britton User-Agent: Mozilla Thunderbird 0.9 (X11/20041203) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Jorge Mario G." References: <20041212203055.88860.qmail@web50307.mail.yahoo.com> In-Reply-To: <20041212203055.88860.qmail@web50307.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: freebsd-questions@freebsd.org Subject: Re: Clicks and Pops playing music. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 06:32:48 -0000 Jorge Mario G. wrote: > --- Nikolas Britton escribió: > > >>After switching my main box from windows to freebsd >>I have notice a shit >>load of clicks and pops when playing my mp3s. I have >>have a relatively >>nice sound system setup on my computer (SoundBlaster >>Live!, high end >>Yamaha 2.1 speaker system, and my mp3s encode at >>150KB VBR) and this is >>really annoying me. >> >> >What exateley do you mean by clicks and pops? and when >did they occur? >A blind tip> try enabling virtual channels > >Jorge Mario > > > Thanks jorge, I had maxautovchans=4 already set but you spurred me on to read the man page for snd and figure out what all the sysctl's do. In the man page I found this: "hw.snd.targetirqrate: Set the default block size such that continuous playback will achieve this IRQ rate. This value can be tuned to improve application performance. Increase this value when the sound lags and decrease it if sound stutters or breaks up." On a whim I change this from 32 to 48 via /boot/loader.conf and rebooted. This (so far) seems to have done the trick, I have not heard any clicks, pops, or other abnormal artifacts when playing my music. So, for anyone that uses the SoundBlaster Live! and Audigy cards (snd_emu10k1) you might want to try this, here are my settings: $ sysctl hw.snd hw.snd.targetirqrate: 48 hw.snd.report_soft_formats: 1 hw.snd.verbose: 1 hw.snd.unit: 0 hw.snd.maxautovchans: 4 hw.snd.pcm0.buffersize: 4096 /boot/loader.conf: ## Sound Support #sound_load="YES" #snd_emu10k1_load="YES" #snd_driver_load="YES" hw.snd.maxautovchans=4 hw.snd.targetirqrate=48 Kernel config file: # Sound Support device sound # PCM audio device infrastructure device "snd_emu10k1" # SoundBlaster Live! and Audigy PCI bridge device driver $ uname -a FreeBSD spectra.intranet 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #0: Thu Dec 2 19:09:20 CST 2004 nbritton@spectra.intranet:/usr/obj/usr/src/sys/SPECTRA i386 now... I just need to figure out how to disable Line-in and Mic for a better SNR, any takers?