You are not logged in.
Hello,
I'm not sure where to post this type of question.
I'm thinking about writing a music player. The only question I have concerns the audio quality.
I'm thinking about having a frontend (web) and a backend service (all in localhost).
Will I have a better quality by writing the engine that reads the music or by streaming the music to the web browser (ex. Firefox) that will then read the music ? Or doesn't it matter ?
I'm thinking about using the FFMEPG library for reading the music.
Thank you very much in advance for any help
Offline
https://wiki.archlinux.org/title/Professional_audio may give you some ideas/tips.
Moderator Note
moving to Programming & Scripting
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Will I have a better quality by writing the engine that reads the music or by streaming the music to the web browser (ex. Firefox) that will then read the music ?
Better than what? What is your metric of "quality"?
Offline
psycho-acoustic compression will 10:1 up to 20:1 compared to PCM, decoding on the server and sending the PCM stream might run you into latency issues and also the server doesn't know the the client HW/mixer so you might have to convert the frequency on the client.
Are you aware that mpd and a metric shit-ton of clients for it exist?
Offline
Will I have a better quality by writing the engine that reads the music or by streaming the music to the web browser (ex. Firefox) that will then read the music.
No
Usually an audio stream is using a lossy compression algorithm like mp3 or ogg. It doesn't matter which decoder is used. All decoders should give you the exactly same output.
If your browser decodes the audio stream, it should be the same, like FFmpeg is decoding the same stream.
Offline