Posts: 14,035
Threads: 320
Joined: Mar 2018
Reputation:
571
The log shows
20210904 204539 worker: ALSA output mode (Direct: hw)
Try setting ALSA output mode to "Default (plughw)"
Posts: 21
Threads: 0
Joined: Sep 2021
Reputation:
0
(09-04-2021, 01:30 PM)Tim Curtis Wrote: The log shows
20210904 204539 worker: ALSA output mode (Direct: hw)
Try setting ALSA output mode to "Default (plughw)"
Thanks Tim. Just changed the setting back to "plughw". It makes no difference, still no sound. Anything else you think I should try? I have tried the different USB ports, changing the USB cable as well.
Posts: 14,035
Threads: 320
Joined: Mar 2018
Reputation:
571
You mentioned that the stereo test file played. It's 16/48K ao maybe try setting AoX resampling to 16/48. This will only affect MPD playback. Airplay and Spotify have settings in their respective Config screens.
Posts: 21
Threads: 0
Joined: Sep 2021
Reputation:
0
(09-04-2021, 04:40 PM)Tim Curtis Wrote: You mentioned that the stereo test file played. It's 16/48K ao maybe try setting AoX resampling to 16/48. This will only affect MPD playback. Airplay and Spotify have settings in their respective Config screens.
Tim, I am new to music streaming, could you please tell me more how I can change the resembling rate. Thanks.
Posts: 14,035
Threads: 320
Joined: Mar 2018
Reputation:
571
Menu, Configure, MPD settings
SoX resampling
Posts: 21
Threads: 0
Joined: Sep 2021
Reputation:
0
09-05-2021, 01:45 AM
(09-05-2021, 01:19 AM)Tim Curtis Wrote: Menu, Configure, MPD settings
SoX resampling
Yes, it works
Finally, I can hear sound from RPi USB. I played the web radio, it works fine, sound as expected. Thanks so much.
Now, how do I get Spotify and Airplay to work, the reason I embarked on this project. I looked at the Spotify and Airplay config in Moode, I did not see the same sampling rate I can choose. Any suggestion?
Posts: 21
Threads: 0
Joined: Sep 2021
Reputation:
0
(09-05-2021, 01:45 AM)pyhfsg Wrote: (09-05-2021, 01:19 AM)Tim Curtis Wrote: Menu, Configure, MPD settings
SoX resampling
Yes, it works
Finally, I can hear sound from RPi USB. I played the web radio, it works fine, sound as expected. Thanks so much.
Now, how do I get Spotify and Airplay to work, the reason I embarked on this project. I looked at the Spotify and Airplay config in Moode, I did not see the same sampling rate I can choose. Any suggestion? I did a bit more research on the forum and found similar problems reported with previous versions of Moode. Someone suggested a fix by:
changing the alsa config in /etc/alsa/conf.d/_deviceout.conf from hw:2,0 to plughw:2,0
I checked my card, it is also Card 2 but I could not find _deviceout.conf file in my system. There is a _audioout.conf file which is already pointing to "plughw:2,0".
Is the problem fixed with the current version? If not, is the above fix still valid?
Thanks.
Posts: 14,035
Threads: 320
Joined: Mar 2018
Reputation:
571
(09-05-2021, 01:45 AM)pyhfsg Wrote: (09-05-2021, 01:19 AM)Tim Curtis Wrote: Menu, Configure, MPD settings
SoX resampling
Yes, it works
Finally, I can hear sound from RPi USB. I played the web radio, it works fine, sound as expected. Thanks so much.
Now, how do I get Spotify and Airplay to work, the reason I embarked on this project. I looked at the Spotify and Airplay config in Moode, I did not see the same sampling rate I can choose. Any suggestion?
Airplay only offers multiples of 44.1 rate and Spotify only supports 44.1 output rate. If the DAC in these speakers only accepts 48K rate then you are out of luck with Airplay and Spotify, at lease as far as moOde built-in options go for these renderers.
You can try running the alsacap utility to see what bit depths and sample rates the DAC supports.
Code: moodeutl -F
or
alsacap
Posts: 21
Threads: 0
Joined: Sep 2021
Reputation:
0
09-05-2021, 11:36 AM
(This post was last modified: 09-06-2021, 06:49 AM by DRONE7.
Edit Reason: code tags....please use them folks
)
(09-05-2021, 10:31 AM)Tim Curtis Wrote: (09-05-2021, 01:45 AM)pyhfsg Wrote: (09-05-2021, 01:19 AM)Tim Curtis Wrote: Menu, Configure, MPD settings
SoX resampling
Yes, it works
Finally, I can hear sound from RPi USB. I played the web radio, it works fine, sound as expected. Thanks so much.
Now, how do I get Spotify and Airplay to work, the reason I embarked on this project. I looked at the Spotify and Airplay config in Moode, I did not see the same sampling rate I can choose. Any suggestion?
Airplay only offers multiples of 44.1 rate and Spotify only supports 44.1 output rate. If the DAC in these speakers only accepts 48K rate then you are out of luck with Airplay and Spotify, at lease as far as moOde built-in options go for these renderers.
You can try running the alsacap utility to see what bit depths and sample rates the DAC supports.
Code: moodeutl -F
or
alsacap
Tim, thanks for your quick response. Here is the output:
Code: alsacap:
Card 2, ID `AM3', name `PSB Alpha AM3'
Device 0, ID `USB Audio', name `USB Audio', 1 subdevices (1 available)
2 channels, sampling rate 8000..48000 Hz
Sample formats: S16_LE
Buffer size range from 32 to 262144
Period size range from 16 to 131072
moodeutl -F
Card 2, ID `AM3', name `PSB Alpha AM3'
Device 0, ID `USB Audio', name `USB Audio', 1 subdevices (1 available)
2 channels, sampling rate 8000..48000 Hz
Sample formats: S16_LE
Buffer size range from 32 to 262144
Period size range from 16 to 131072
Did I read correctly that Card 2 supports sampling rate between 8000 and 48000Hz?
Posts: 21
Threads: 0
Joined: Sep 2021
Reputation:
0
Tim,
Pardon my ignorance if I am asking silly questions.
I did a bit more research on the forum and found similar problems reported with previous versions of Moode. Someone suggested a fix by:
changing the alsa config in /etc/alsa/conf.d/_deviceout.conf from hw:2,0 to plughw:2,0
I checked my card, it is also Card 2 but I could not find _deviceout.conf file in my system. There is a _audioout.conf file which is already pointing to "plughw:2,0".
Is the fix above still valid? If so, how do I deal with the missing _deviceout.conf file?
Thanks.
|