MATLAB Answers

Audio toolbox for active speaker crossover

7 views (last 30 days)
I'm in the process of building some custom speakers, and wish to implement an active crossover using software DSP. This would include speaker, and room correction, and other bits of EQ. From what I can gather the audio toolbox would tick the boxes, however I wish to clarify:
Could an audio model pick up audio from another application, e.g. amazon music, apply the filters and stream out to the soundcard live? i.e. not reading from an input mp3 or similar.
Can this also be achieved where the source is external, e.g. SPDIF input on the soundcard.
Is this functionality supported in both linux and windows? I'm using virtual audio cable in windows to create a virtual audio device.
Can such applications be deployed standalone using the appropriate 'coder' toolbox? On both Windows and Linux?
Optional - with the appropriate input mic, I'm using a miniDSP umik-1, can the audio toolbox handle the speaker profiling bit of the process too?
For context, I have a good level of familiarity with MATLAB/Simulink through my day job at an engineering company, so am well versed in the toolset in general - it's really just the audio toolbox I'm lacking a detailed understanding of.
If it's relevant, I'm planning on using an ASUS Xonar u7 mk2 usb soundcard in the implementation.
Thanks
Russ

Accepted Answer

Jimmy Lapierre
Jimmy Lapierre on 2 Dec 2020
Q. Could an audio model pick up audio from another application, e.g. amazon music, apply the filters and stream out to the soundcard live? i.e. not reading from an input mp3 or similar. Can this also be achieved where the source is external, e.g. SPDIF input on the soundcard. Is this functionality supported in both linux and windows? I'm using virtual audio cable in windows to create a virtual audio device.
A. Audio Toolbox can open devices that are made available by the OS. It will not create/replace a virtual audio device by itself, but using such a virtual device is a good way to go. To interface with an existent app, you can use either a virtual audio device (set to loop back), a physical loopback, or if the app supports it, an audio plugin format (i.e. VST). Your SPDIF input probably shows up as an input device, so you would be able to select that.
Q. Can such applications be deployed standalone using the appropriate 'coder' toolbox? On both Windows and Linux?
A. You might not even need coder. Look at generating a standalone plugin with generateAudioPlugin. Probably the easiest way to go, as it will take care of the audio I/O for you.
Q. Optional - with the appropriate input mic, I'm using a miniDSP umik-1, can the audio toolbox handle the speaker profiling bit of the process too?
A. I'm not 100% sure what this is, but my first thought would be to look at the Impulse Response Measurer app to see if that does what you need.
If it's relevant, I'm planning on using an ASUS Xonar u7 mk2 usb soundcard in the implementation.
Audio Toolbox will give you the option to use ASIO instead of DirectSound. And if you want to do a test of your device (SPDIF for example), try it with Audacity; if that works, it is expected to work with Audio Toolbox.
  2 Comments
Jimmy Lapierre
Jimmy Lapierre on 3 Dec 2020
Thanks, you too! Just come back if you have more questions, we'll try to help.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!