Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

PC Based Computer music servers, crossovers, and equalization

Need some brutefir help!!!
Need some brutefir help!!!
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 8th April 2020, 09:11 AM   #1
Boscoe is offline Boscoe  United Kingdom
diyAudio Member
 
Join Date: Feb 2010
Location: England
Default Need some brutefir help!!!

Hi All,

I'm having some trouble getting my brutefir setup working.

I'm planning on using the optical input and 8 analogue output channels of my X-Fi Titanium sound card for an active filtering system.

The thing is I have no idea how to map the inputs/outputs of the sound card to brutefir. The sound card is detected by the system and works. I can use speaker-test to generate audio output on the first two channels, the rest do not work.

Below is the output of aplay -l

I don't have any setup in my /etc/asound file, I have no idea how to do this. I haven't been able to find any documentation for it.

I have an analogue input and output on the sound card. I'm inputting 2kHz and getting nothing out. My current filter setup is a 1kHz high pass filter.

Any pointers or help would be much appreciated!

This is the output from brutefir when I start it.

Code:
BruteFIR v1.0m (November 2013)                                (c) Anders Torger

Internal resolution is 32 bit floating point.
SSE capability detected -- optimisation enabled.
Creating 4 FFTW plans of size 131072...finished.
Loading coefficient set...finished.
Realtime priorities are min = 2, usermax = 1, mid = 3 and max = 4.
Estimated CPU clock rate is 1097.511 MHz. CPU count is 2.
Filters in process 0: 0
Filters in process 1: 1
Warning: not allowed to set realtime priority. Will run with default priority
  instead, which is less reliable (underflow may occur).
Fixed I/O-delay is 131072 samples
Audio processing starts now
These are the input outputs I have setup in .brutefir_config.

Code:
## INPUT, OUTPUT ##

input "l_in", "r_in" {
        device: "alsa" { device: "hw:0"; ignore_xrun:true;};
        sample: "S16_LE";
        channels: 2/0,1;
};

output "l_out", "r_out" {
        device: "alsa" { device: "hw:0"; ignore_xrun:true;};
        sample: "S16_LE";
        channels: 2/0,1;
};
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: XFi [Creative X-Fi], device 0: ctxfi [Front/WaveIn]
  Subdevices: 256/256
  Subdevice #0: subdevice #0
  ...continues to...
  Subdevice #255: subdevice #255
card 0: XFi [Creative X-Fi], device 1: ctxfi [Surround]
  Subdevices: 256/256
  Subdevice #0: subdevice #0
  ...continues to...
  Subdevice #255: subdevice #255
card 0: XFi [Creative X-Fi], device 2: ctxfi [Center/LFE]
  Subdevices: 256/256
  Subdevice #0: subdevice #0
  ...continues to...
  Subdevice #255: subdevice #255
card 0: XFi [Creative X-Fi], device 3: ctxfi [Side]
  Subdevices: 256/256
  Subdevice #0: subdevice #0
  ...continues to...
  Subdevice #255: subdevice #255
card 0: XFi [Creative X-Fi], device 4: ctxfi [IEC958 Non-audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
  Reply With Quote
Old 8th April 2020, 11:56 AM   #2
HenrikEnquist is offline HenrikEnquist  Sweden
diyAudio Member
 
Join Date: Apr 2016
Location: Lund
If you take a step back, can you get a simple loop working with alsaloop?
Ubuntu Manpage:

alsaloop - command-line PCM loopback



I don't see anything obviously wrong in your brutefir config. You could try specifying device in addition to the card (for both input and output), so go from "hw:0" to "hw:0,0" (for device 0 on card 0).



It looks as if the X-fi card presents its 8 channels as 4 stereo devices instead of a single 8-channel device. This makes it more complicated to use, but should still work. I haven't tried it myself, but BruteFIR supports outputting to several devices, and in this case they all share the clock so there won't be any drift problems between channels.
There is also the possibility to join the 4 devices to one with an alsa multi device. I don't know if there is any advantage compared to letting BruteFIR do it, but it's an alternative:
Alsa Opensrc Org - Independent ALSA and linux audio support site
  Reply With Quote
Old 8th April 2020, 07:06 PM   #3
Boscoe is offline Boscoe  United Kingdom
diyAudio Member
 
Join Date: Feb 2010
Location: England
Quote:
Originally Posted by HenrikEnquist View Post
If you take a step back, can you get a simple loop working with alsaloop?
Ubuntu Manpage:

alsaloop - command-line PCM loopback



I don't see anything obviously wrong in your brutefir config. You could try specifying device in addition to the card (for both input and output), so go from "hw:0" to "hw:0,0" (for device 0 on card 0).



It looks as if the X-fi card presents its 8 channels as 4 stereo devices instead of a single 8-channel device. This makes it more complicated to use, but should still work. I haven't tried it myself, but BruteFIR supports outputting to several devices, and in this case they all share the clock so there won't be any drift problems between channels.
There is also the possibility to join the 4 devices to one with an alsa multi device. I don't know if there is any advantage compared to letting BruteFIR do it, but it's an alternative:
Alsa Opensrc Org - Independent ALSA and linux audio support site
Thank you for your reply. I have managed to get the system working by enabling capture on the 'Line Input' on my sound card which is the input I am using in alsamixer.

The problem is I now have loop through from the 'Line In' to my front left and right outputs. This means I get some very strange combinations at the output of this channel - the rest are fine. So now I'm looking at how to disable this loop back as I'd like to have 8 channels output. There's advice saying this is possible in alsamixer but I don't have the option for it...
  Reply With Quote
Old 8th April 2020, 07:33 PM   #4
phofman is online now phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Perhaps the "Line Playback Volume"?
  Reply With Quote
Old 10th April 2020, 07:23 AM   #5
Boscoe is offline Boscoe  United Kingdom
diyAudio Member
 
Join Date: Feb 2010
Location: England
Quote:
Originally Posted by phofman View Post
Perhaps the "Line Playback Volume"?
That's correct! Thank you.
  Reply to this post

Reply


Need some brutefir help!!!Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Brutefir - where has it gone? Daihedz PC Based 9 2nd August 2019 08:16 PM
Help with BruteFIR configuration Crumboo PC Based 17 24th February 2014 06:45 PM
BruteFIR stability problems a_tewinkel PC Based 8 24th May 2013 09:32 AM
Brutefir or min dsp greasergirl PC Based 4 13th March 2013 05:29 PM
Hawkboard, BruteFIR, jconv, DSP, DRC, etc. man_jose PC Based 1 13th September 2010 03:24 PM


New To Site? Need Help?

All times are GMT. The time now is 08:22 AM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.00%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Copyright ©1999-2020 diyAudio
Wiki