MAFA version: 1.9.13
Android version: 14
Device model: Samsung S22 Plus
MPD version: 23.15
.WV (wavpack) encoded songs 32bit 384khz plays fine on mpd, also streams fine over VLC or MPV but fails to in MAFA. It plays fine FLAC 24/192 songs
mpd.conf
audio_output {
type “httpd”
encoder “wave” # (tried flac and null as well)
#compression “0”
port “8000”
name “http”
enabled “yes”
}
Alex_B
December 4, 2024, 7:40pm
2
It looks like this sample rate is not supported by the internal player:
getMinBufferSize(): 384000 Hz is not a supported sample rate.
You can try with an external player if one is installed on your android.
Or you can configure the http output to resample to a supported sample rate.
For example:
audio_output {
type "httpd"
name "HTTP Stream - wave - 8007"
encoder "wave" # also works with flac, lame, and vorbis
port "8007"
format "44100:16:2"
}
Tested with 32 bit FLAC / 384 kHz sample audio downloaded from here .
Thanks…MPV and VLC are able to play it…not sure if that’s what you meant by external players.
In terms of the format, do you know what happens if I try to play a lower graded song? does MPD attempts to “upscale” it?
Alex_B
December 6, 2024, 9:12am
4
External player means that MAFA will pass the HTTP stream to another app on the device for playing, instead of using an internal player.
In terms of the format, I think MPD will re-sample any source to the format configured for the audio_output
.
The documentation says:
format samplerate:bits:channels Always open the audio output with the specified audio format, regardless of the format of the input file.
Wow…I was not aware to the external players feature in MAFA…so it works but the cache size is too small (4Mb) so they stuck. I think I will use the “format” approach then.
Thank you very much for your help!