Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Removing bass output
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
lorien420
n00b
n00b


Joined: 16 Jun 2003
Posts: 11
Location: Atlanta, Georgia, USA

PostPosted: Fri Jan 06, 2006 5:43 pm    Post subject: Removing bass output Reply with quote

It seems that all speakers worth a damn now are manufactured with a subwoofer that you can't turn off. I actually have this sub set with the bass wheel all the way to the zero position, but it's still outputting this obnoxious air. I have roommates and can't have the room shake all of the time.

Does anybody know a way with an ALSA plugin, or anything else for that matter, to stop all bass output. It's the only way I can think of to turn it off.
Back to top
View user's profile Send private message
ianegg
Apprentice
Apprentice


Joined: 26 Oct 2005
Posts: 279
Location: Breakfast.

PostPosted: Fri Jan 06, 2006 7:01 pm    Post subject: Reply with quote

I don't know how to do it, but, you need to use a LADSPA plugin. I saw a guide somewhere when I was first settign up my soundcard, but I couldn't figure it out and found another way to do what I wanted.

I can't find this guide anymore, but I'll keep looking, but try searching for LADSPA yourself, cos I'll probably get bored quickly. :)

EDIT: http://alsa.opensrc.org/index.php?page=SurroundSound
I think that's the page I was thinking of. It uses lpf for the subwoofer channel, but I imagine if you use hpf (a simple high pass filter, aparently) you can do what you want.

I have no idea how to get LADSPA working though. There's no /usr/lib/ladspa on my system, and it's not in portage. I imagine what you'd put in ~/.asoundrc would be something like this:
Code:
pcm.highpass {
    type ladspa
    slave.pcm default
    path "/usr/lib/ladspa"
    plugins [ {
        label lpf
        input {
            controls [ 200 ]
        }
    } ]
}
(and tell programs to use highpass or plug:highpass as their output pcm)
Back to top
View user's profile Send private message
lorien420
n00b
n00b


Joined: 16 Jun 2003
Posts: 11
Location: Atlanta, Georgia, USA

PostPosted: Fri Jan 06, 2006 11:11 pm    Post subject: Reply with quote

Okay, I took that code and tried it out. First I used the default device, which is some sort af alias to swmix. I ran into a series of problems. Firstly, here's my asound.conf file without that added:

Code:

pcm.swmix {
   type dmix
   # any unique number here
   ipc_key 313
   slave {
      pcm "hw:0,0"
      # these settings may require tweaking for different sound
      # cards; this is for the Powerbook's built-in snd-powermac
      # probably not required at all for well-behaved cards...
      period_time 0
      period_size 1024
      buffer_size 8192
      # mentioning rate fixes wrong speed/pitch in native ALSA stuff
      rate 44100
   }
}
# this makes OSS emulation via aoss default to using dmix, allegedly
pcm.dsp0 {
   type plug
   slave.pcm "swmix"
}
ctl.mixer0 {
   type hw
   card 0
}
# this makes native ALSA apps default to using dmix
pcm.!default {
   type plug
   slave.pcm "swmix"
}


At first, I use your code with default and get this error:
Code:
aplay: set_params:949: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  U8
SUBFORMAT:  STD
SAMPLE_BITS: 8
FRAME_BITS: 8
CHANNELS: 1
RATE: 22050
PERIOD_TIME: (23219 23220)
PERIOD_SIZE: NONE
PERIOD_BYTES: (511 512)
PERIODS: NONE
BUFFER_TIME: (185759 185760)
BUFFER_SIZE: 4096
BUFFER_BYTES: 4096
TICK_TIME: 0


Anything else, like "swmix" gets me:
Code:
ALSA lib pcm_direct.c:653:(snd_pcm_direct_hw_refine) dshare format mask empty?
ALSA lib pcm_params.c:2152:(snd_pcm_hw_refine_slave) Slave PCM not usable
aplay: set_params:874: Broken configuration for this PCM: no configurations available
Back to top
View user's profile Send private message
ianegg
Apprentice
Apprentice


Joined: 26 Oct 2005
Posts: 279
Location: Breakfast.

PostPosted: Sat Jan 07, 2006 4:45 am    Post subject: Reply with quote

Sorry, I never figured out how to get a lowpass filter working, mainly due to the lack of documentation, and the vagueness of what little I could find. I've had a look around for anything more useful, but have had no luck, so I can't really offer you any more help. :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum