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

3D panning to surround speakers? #55

Closed
timotoots opened this issue Feb 18, 2016 · 7 comments
Closed

3D panning to surround speakers? #55

timotoots opened this issue Feb 18, 2016 · 7 comments

Comments

@timotoots
Copy link

Hey!
Do you think it would be possible to use surround sound support for the 3D panning?
So you could play some sound effects from the back speakers of 5.1 surround system?

I know the HTML5 plays it well if it's in the source file. Does wad have any support for surround?

Thanks!

@rserota
Copy link
Owner

rserota commented Feb 18, 2016

If you use 3d panning to set a sound to play from behind the listener ( e.g. setPanning([0, 0, -10]) ), I expect you'd hear it from your rear speakers, though I'm not actually sure how well that would work.

@timotoots
Copy link
Author

Thanks, I will try if it works.

@rserota rserota closed this as completed Mar 6, 2016
@timotoots
Copy link
Author

I tried it finally and it seems not to work.

Also I noticed if I loaded a surround sound file (wave with sound in rear left speaker) to wad, it did not play at all. It did play in rear left channel if played directly in Chrome.

It it worked, it would be great to use wad for surround sound installations! Do all sorts of crazy motion sounds would be possible etc.

@timotoots
Copy link
Author

Maybe wad would just need to set channel configuration? Like here:
https://www.w3.org/TR/webaudio/#ChannelLayouts
I would do it, but my code ability is limited..

@rserota rserota reopened this Mar 22, 2016
@rserota
Copy link
Owner

rserota commented Mar 22, 2016

Setting channel configuration looks useful. I'll look into it as I find time. However, I don't have surround sound speakers, so I'm not sure if I'd be able to test it well.

@julianpoy
Copy link

I have a surround system. Perhaps if someone were to make the changes, I could test them?

I would be willing to implement this, but I am short on time for the next week. Maybe I'll get to doing something like this next week.

@torch2424 Would you be interested in coming over and developing this together?

@timotoots
Copy link
Author

I could test as well. I have cheap 5.1 sound card with two pairs of headphones for testing.

@rserota rserota closed this as completed Dec 7, 2018
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

3 participants