Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Moode USB Output
#51
The log shows

20210904 204539 worker: ALSA output mode (Direct: hw)

Try setting ALSA output mode to "Default (plughw)"
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#52
(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.
Reply
#53
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.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#54
(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.
Reply
#55
Menu, Configure, MPD settings

SoX resampling
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#56
Thumbs Up 
(09-05-2021, 01:19 AM)Tim Curtis Wrote: Menu, Configure, MPD settings

SoX resampling

Yes, it works   Smile    

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?
Reply
#57
(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   Smile    

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.
Reply
#58
(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   Smile    

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
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#59
(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   Smile    

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?
Reply
#60
Tim,

Pardon my ignorance if I am asking silly questions.


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.
Reply


Forum Jump: