Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set the D/A converter to 44100 -- set to 48000 instead. #51

Closed
eripa opened this issue Feb 25, 2015 · 5 comments
Closed

Can't set the D/A converter to 44100 -- set to 48000 instead. #51

eripa opened this issue Feb 25, 2015 · 5 comments

Comments

@eripa
Copy link

eripa commented Feb 25, 2015

I've been using shairport-sync on two devices (Pi) with great success. However, only one of them have a proper DAC and then I found an old "3D Sound" USB card laying around, so I figured that I would hook it up to the other Pi to get a bit better sound from it.

However, the USB card only seem to support 48KHz. I found the below thread on volumio.org. Any news on this 'issue'? Or should I bit the bullet and get another proper DAC?

https://volumio.org/forum/new-version-shairport-with-audio-synchronisation-t1302.html

@mikebrady
Copy link
Owner

Hi Eric. It's good to hear that you're having success with shairport-sync. TBH, I don't have any near-term plans to support other sample rates, so I think it would be best to bite that bullet. In any case, it's an open question as to whether a first generation Raspberry Pi could support it.

@eripa
Copy link
Author

eripa commented Feb 26, 2015

Cool, thanks a lot for the explanation. I will look into a real DAC then.

@eripa eripa closed this as completed Feb 26, 2015
@Havelock-Vetinari
Copy link

Hi Eric!
For ALSA sound system you can try with rate converter.
Create configuration in /etc/asound.conf similiar to one below:

pcm_slave.jabra
{
    pcm "hw:2,0"
    rate 48000
}

pcm.jabra_44k1 {
    type rate
    slave jabra
}

Now, refer to rate converting device (in example above jabra_44k1) in shairport-sync configuration:

alsa =
{
  output_device = "jabra_44k1";
};

@patientx
Copy link

Hi Eric!
For ALSA sound system you can try with rate converter.
Create configuration in /etc/asound.conf similiar to one below:

pcm_slave.jabra
{
    pcm "hw:2,0"
    rate 48000
}

pcm.jabra_44k1 {
    type rate
    slave jabra
}

Now, refer to rate converting device (in example above jabra_44k1) in shairport-sync configuration:

alsa =
{
  output_device = "jabra_44k1";
};

Hi there. I found out about your program today wanted to try it with my pi mopidy setup. It is working with mopidy as the USB AUDIO card as output and everything is fine.

However, when using with shairport-sync I am having the same problem.

"fatal error: Can't set the D/A converter to 44100."

But when I just use : shairport -- -d hw:1 the audio works fine there with the usb card. I mean with tuneblade working on PC the same content -mp3 via winamp- plays on the pi usb speaker just fine.

I also wanted to try your also converter solution with the asound.conf file but the file is not there on my system and I never needed it at all while setting up mopidy. I can continue to use normal shairport but if possible I want to try the sync version. Thanks for your hardwork.

@mikebrady
Copy link
Owner

Hi there, and thanks for the post. Shairport Sync requires a real sound card with a 44,100 (CD quality) frames per second capability. This is necessary because audio comes in at 44,100 frames per second and Shairport Sync does not transcode. The rate converter solution proposed above would require a lot of processing power, probably more than a Pi has to offer, and would very likely interfere with synchronisation. Most DACs support 44,100 or a multiple nowadays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants