-
Notifications
You must be signed in to change notification settings - Fork 32
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
FLAC support #7
Comments
FLAC support is in the pipeline. Currently working on a patch to add FLAC support to the metadata reading library https://github.com/dhowden/tag. Once that's done the plan is to get FLAC files playing in the UI using https://github.com/audiocogs/flac.js. Then at some point in the future would port that code to Go so that we can decode and stream PCM (or MP3 depending on the connection speed) directly to the frontend from the server. |
So to use flac.js, you need to use their framework and their audio player - see https://github.com/audiocogs/aurora.js/wiki/Getting-Started This may also solve some of your other issues at the same time (It looks like it's using the Audio api's, rather than an audio element like you're currently using 👍 ) |
I was hoping to just use flac.js, ALAC.js, but then write a very simple wrapper to hook the PCM output into the Web Audio API (anticipating that this decoding work will be done on the server in the near future). There are several Web Audio API docs which seem to suggest that this would be quite straightforward. This would also fit nicely with the current approaches I've seen to gapless playback with the Web Audio API (though I have yet to properly experiment with that). A nice compromise in the short term would be to use their full player (assuming the events stuff can all be hooked in nicely). In the long term there are a few issues in the project which are a bit worrying:
I've been experimenting with a branch which uses the JS |
I would like flax support because I am a lossless audio snob.
The text was updated successfully, but these errors were encountered: