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 and WAV support for music? #492

Open
H-A-M-G-E-R opened this issue Aug 31, 2024 · 3 comments
Open

FLAC and WAV support for music? #492

H-A-M-G-E-R opened this issue Aug 31, 2024 · 3 comments

Comments

@H-A-M-G-E-R
Copy link

I know that Touhou uses WAV files as music.

@flibitijibibo
Copy link
Member

flibitijibibo commented Sep 1, 2024

For WAV it can be loaded all at once in SoundEffect though that probably uses too much memory.

All other formats can use any standard decoder and pass the PCM to a DynamicSoundEffectInstance.

@H-A-M-G-E-R
Copy link
Author

I think FLAC/WAV can be streamed from disk with less CPU cycles than Vorbis.
Proof: https://phoboslab.org/log/2023/02/qoa-time-domain-audio-compression

@flibitijibibo
Copy link
Member

QOA is fine too - Vorbis is mostly for disk size, for FNA's purposes it was chosen to replace XNA MediaPlayer's format which is WMA. You can pick any format you want, we'll read PCM either way.

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

2 participants