Skip to content
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 Playback #9

Open
eLopez6 opened this issue Apr 17, 2019 · 2 comments
Open

FLAC Playback #9

eLopez6 opened this issue Apr 17, 2019 · 2 comments

Comments

@eLopez6
Copy link
Collaborator

eLopez6 commented Apr 17, 2019

Due to my personal lack of time, I'm opting to transcode the FLAC to a WAV. Found a library that has sample code to assist in doing that. I'm basically adapting the code for our needs. Do not recommend this for a future release.

@eLopez6
Copy link
Collaborator Author

eLopez6 commented Apr 17, 2019

I was able to get the transcoded files to play. Metadata is loaded from the original FLAC instead of the WAV. The WAV's only purpose is to be a playable file by our MediaPlayer. The next step is to cache the creation of these files in a session. And then also to delete the files on normal close.

@eLopez6
Copy link
Collaborator Author

eLopez6 commented Apr 18, 2019

My caching works! The files no longer need to be reloaded. And it turns out Java 8 File has a deleteOnExit() method. On program execution, the temporary WAV files we created for playback will delete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant