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

using a Raspberry Pi 4 as a USB DSP-DAC
using a Raspberry Pi 4 as a USB DSP-DAC
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 21st August 2019, 11:57 AM   #31
CharlieLaub is offline CharlieLaub  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Michigan
Quote:
Originally Posted by phofman View Post
Most networks have a DHCP server. Why not using some zeroconf solution (avahi), like daphile and other players do? RPi would be accessed by under name e.g. xover.local.
Because I need a fixed (numbered) IP address for the RTP over UDP.
__________________
Visit my Audio Web Page <<--CLICK TO LEARN MORE-->> Get my LADSPA plugins
  Reply With Quote
Old 21st August 2019, 03:28 PM   #32
phofman is online now phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Why can it not use DNS, instead of plain IP address?
  Reply With Quote
Old 21st August 2019, 04:24 PM   #33
CharlieLaub is offline CharlieLaub  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Michigan
Quote:
Originally Posted by phofman View Post
Why can it not use DNS, instead of plain IP address?
Can you be more specific with your question?

This needs to function properly even if there is no network available...
__________________
Visit my Audio Web Page <<--CLICK TO LEARN MORE-->> Get my LADSPA plugins
  Reply With Quote
Old 21st August 2019, 06:15 PM   #34
phofman is online now phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
In using a Raspberry Pi 4 as a USB DSP-DAC you talk about the need for knowing the IP of your xover RPi. With avahi (zeroconf) the xover.local would be resolved automatically, independently of network setup. You should be able to use that instead the specific IP address. On any network, without the dedicated USB-ethernet segment.

But it requires a network though. Just a network cable should do.
  Reply With Quote
Old 21st August 2019, 06:45 PM   #35
CharlieLaub is offline CharlieLaub  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Michigan
Quote:
Originally Posted by phofman View Post
In using a Raspberry Pi 4 as a USB DSP-DAC you talk about the need for knowing the IP of your xover RPi. With avahi (zeroconf) the xover.local would be resolved automatically, independently of network setup. You should be able to use that instead the specific IP address. On any network, without the dedicated USB-ethernet segment.

But it requires a network though. Just a network cable should do.
To initiate a Gstreamer RTP-over-UDP stream using the element udpsink you must provide the destination IP address, because that is how the element has been written. There might be other apps that are able to stream RTP audio data to a zeroconf type address, but I am not familiar with them.

Remember, one point of this project is to use the USB gadget connection. Sure that is "ethernet" it its protocol but it is not part of a network by design. The connection is "plug and play" like USB. In the last couple of days I wrote a small script that runs on the Pi. It continually pings the IP of the USB gadget and when that it up, it launches the Gstreamer pipeline. If script was run at start-up the entire Pi side would be a headless, black box. On the host PC a similar script is executed via a batch file, so the user has to only click on it to start sending audio data. It's pretty fault tolerant, as I have discovered. With everything up and audio playing, I can unplug the cable, wait a few minutes. The Gstreamer pipelines keep running and complain about buffer overruns. As soon as I plug it back in, audio playback resumes.

I don't really see a problem with the IP address approach. It's something that you set up one time on the PI and in Windows RNDIS and then forget about it unless you needed to change something about the setup. The Pi itself never needs to be connected to the internet.
__________________
Visit my Audio Web Page <<--CLICK TO LEARN MORE-->> Get my LADSPA plugins
  Reply With Quote
Old 22nd August 2019, 12:26 AM   #36
CharlieLaub is offline CharlieLaub  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Michigan
Once I have the scripts finalized, I will post a HOW-TO.

The 8-channel HAT and PS only cost about US$65 via Amazon while supplies last. Combined with a Pi4 for $35 your $100 gets you an 8-channel DSP/DAC system that you can plug into a Windows or Linux machine via USB.
__________________
Visit my Audio Web Page <<--CLICK TO LEARN MORE-->> Get my LADSPA plugins
  Reply With Quote
Old 22nd August 2019, 01:34 AM   #37
carlthess40 is offline carlthess40  United States
diyAudio Member
 
Join Date: Oct 2017
Location: Lake Mary Florida
Quote:
Originally Posted by CharlieLaub View Post
Once I have the scripts finalized, I will post a HOW-TO.

The 8-channel HAT and PS only cost about US$65 via Amazon while supplies last. Combined with a Pi4 for $35 your $100 gets you an 8-channel DSP/DAC system that you can plug into a Windows or Linux machine via USB.


Question
After you write the code for this, and post the parts list and the scripts. I could use this for a car dsp or a home dsp system setup without a pc hooked up to the PI4 ?
Iím a newbie with these PI boards
Iím also a hands on learner, lol so yes I was horrible in school but great in any of my shop classes
  Reply With Quote
Old 22nd August 2019, 03:52 AM   #38
dtaylo3 is offline dtaylo3  United States
diyAudio Member
 
Join Date: Nov 2004
Location: coloradao usa
A bit over my head, but will look forward to a How To. I use a TinkerBoard rather than Pi for running Volumio into my dac. Works great. Would love to be able to do crossovers in DSP on the TB. As a 62 year old dude this stuff blows my mind vs. my first HK receiver from Sam Goody's into EPI 100 speakers off of BIC turntable in 1974.
  Reply With Quote
Old 22nd August 2019, 12:01 PM   #39
CharlieLaub is offline CharlieLaub  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Michigan
Quote:
Originally Posted by carlthess40 View Post
Question
After you write the code for this, and post the parts list and the scripts. I could use this for a car dsp or a home dsp system setup without a pc hooked up to the PI4 ?
I’m a newbie with these PI boards
I’m also a hands on learner, lol so yes I was horrible in school but great in any of my shop classes
How would you get audio into the Pi without the PC, e.g. in the car setting???

The whole point of this project is to make the Pi into an accessory for the PC that is a DAC wtih DSP capability.

If you want to do that "standalone" then you will need to use some kind of audio device (e.g. USB audio interface) that also has input. That would be a different project alltogether, and it has been done many, many times already. Look into ecasound and e.g. ASUS Xonar U7. You will need a PS for the Pi that works from the car DC power...
__________________
Visit my Audio Web Page <<--CLICK TO LEARN MORE-->> Get my LADSPA plugins

Last edited by CharlieLaub; 22nd August 2019 at 12:12 PM.
  Reply With Quote
Old 22nd August 2019, 12:08 PM   #40
CharlieLaub is offline CharlieLaub  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Michigan
Quote:
Originally Posted by dtaylo3 View Post
A bit over my head, but will look forward to a How To. I use a TinkerBoard rather than Pi for running Volumio into my dac. Works great. Would love to be able to do crossovers in DSP on the TB. As a 62 year old dude this stuff blows my mind vs. my first HK receiver from Sam Goody's into EPI 100 speakers off of BIC turntable in 1974.
This arrangement only works for systems that have USB OTG hosts. It looks like that Tinkerboard does have an OTG host but I don't have any experience using it for this application. I do have a TB lying around here somewhere (the original one) so I could give it a try but that will take some time.

Can you check into that for your board?

Also, if you are already using Volumio on the TB for playback, then you don't need this setup - it's only for playback from another (host) computer via the Pi to the DAC. Instead you can just connect the HDMI HAT to the HDMI output as a standalone accessory (not as a HAT) and then you will get 8 channels of up to 24/192 audio. You just need a program like ecasound to implement the DSP, and an audio loopback (e.g. snd-aloop in ALSA) or other means to direct the Volumio output to the input of ecasound.
__________________
Visit my Audio Web Page <<--CLICK TO LEARN MORE-->> Get my LADSPA plugins
  Reply With Quote

Reply


using a Raspberry Pi 4 as a USB DSP-DACHide 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
DAC for Raspberry Pi LaxAnErde Digital Line Level 40 15th May 2019 03:00 AM
SRC hat for Raspberry Pi DRONE7 PC Based 2 26th March 2019 06:46 PM
I2s DAC + XLR for Raspberry pi? JonesySA PC Based 6 6th May 2018 11:01 PM
My DAC for the Raspberry Pi usul27 Digital Line Level 156 29th April 2017 11:10 PM
DSP for the Raspberry Pi usul27 Digital Line Level 39 30th August 2016 07:29 AM


New To Site? Need Help?

All times are GMT. The time now is 09:28 AM.


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