rserota / wad

Web Audio DAW. Use the Web Audio API for dynamic sound synthesis. It's like jQuery for your ears.
MIT License
1.89k stars 160 forks source link

Accessing the Audio Listener Object through WAD? #78

Closed frastlin closed 6 years ago

frastlin commented 6 years ago

Hello, Could support for the AudioListener object please be added so effective use of 3D audio can be achieved through WAD? https://developer.mozilla.org/en-US/docs/Web/API/AudioListener

This is accessed by audioCtx.listener. Currently the only way I know to access this is by accessing the audio context directly. I would prefer to go through WAD. Thanks,

rserota commented 6 years ago

You can access the audio listener through Wad.audioContext.listener.

frastlin commented 6 years ago

can documentation for Wad.audioContext.listener please be added, or can there be a Wad.listener object? The big thing is the documentation though. Thanks,

rserota commented 6 years ago

The documentation currently describes Wad.audioContext, near the end. The audio context contains all of its usual properties, including the audio listener.