mon / 0x40-web

Pretty images and colours
http://0x40.mon.im/
MIT License
393 stars 38 forks source link

Can this project decode AAC audio? #32

Closed qylcx7758 closed 6 years ago

qylcx7758 commented 6 years ago

It only support MP3 and Ogg?

mon commented 6 years ago

Only if the browser supports aac natively - if it does not, there is no fall-back

qylcx7758 commented 6 years ago

This decoding module does not seem to support AAC, I use AAC audio, no error, but play another song.

qylcx7758 commented 6 years ago

I use Google Chrome.

qylcx7758 commented 6 years ago

In addition, I changed the method, using XMLHttpRequest to request AAC audio, and using this Worker to decode, but error. A decoder for mp4a was not found. or,A demuxer for this container was not found

mon commented 6 years ago

Sounds like your browser doesn't support it, or you're accidentally piping it to the JS fallback (which definitely doesn't support it). It's probably easier to just reencode to ogg here.

qylcx7758 commented 6 years ago

I may describe unclear, this is a simple demo,and it uses your decoding module.You could see it,thanks. If you request AAC audio, will be an error. https://github.com/qylcx7758/play-audio

mon commented 6 years ago

That's the "js fallback" I mentioned. It does not support aac, and I don't have plans to add support for it.

If you would like to add that support I'm afraid you'll need to do it yourself. Apologies.

qylcx7758 commented 6 years ago

Well, I learned a lot about designing and decoding in this project. I'm truly grateful for your help.