ondras / oscope

Configurable JavaScript oscilloscope
https://ondras.github.io/oscope/
49 stars 12 forks source link

Not an issue, more of an inquiry #3

Open Infn8Loop opened 7 years ago

Infn8Loop commented 7 years ago

I love this project! I'm trying to implement this with MP3 streams, and I'm not having any luck. Do you think this is possible?

ondras commented 7 years ago

Hi @msrinteractive,

the Web Audio API works, as far as I recall, only with raw audio data. Everything related to individual file formats is handled outside of the Web Audio API. If you want to manipulate MP3, create an <audio> HTML node, have it load your .mp3 file and create a MediaElementAudioSourceNode from this element.

See this list of possible audio input/source nodes: https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API#Defining_audio_sources

Infn8Loop commented 7 years ago

Thanks very much for the response!

On Apr 22, 2017 2:50 PM, "Ondřej Žára" notifications@github.com wrote:

Hi @msrinteractive https://github.com/msrinteractive,

the Web Audio API works, as far as I recall, only with raw audio data. Everything related to individual file formats is handled outside of the Web Audio API. If you want to manipulate MP3, create an

See this list of possible audio input/source nodes: https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_ API#Defining_audio_sources

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ondras/oscope/issues/3#issuecomment-296393699, or mute the thread https://github.com/notifications/unsubscribe-auth/ARffueNE9EOqfcPhAWi-beUwWEP_cguQks5rykvtgaJpZM4NE7-X .