Simply put, I'd like the ability to use 3D sound features in the webclient, which, as I understand, are not currently supported.
1
2
ID:1992606
Dec 4 2015, 2:21 am
|
|||||||
Resolved
| |||||||
Dec 4 2015, 2:30 am
|
|
I believe they're unsupported because there's no reliable browser equivalent at the moment. (or at least there wasn't the last time I checked, these things are moving along rather rapidly)
|
In response to Nadrew
|
|
Nadrew wrote:
I believe they're unsupported because there's no reliable browser equivalent at the moment. (or at least there wasn't the last time I checked, these things are moving along rather rapidly) http://developer.mozilla.org/en-US/docs/Web/API/ AudioContext/createPanner It has been supported by major browsers since as early as 2011! |
I'm talking in regards to supporting everything that DS supports right now. Then again, with how old FMOD is at this point... who knows?
|
There are some 3D options for Web audio so it may be possible to get that working; I'll look at StageXL's audio support.
|
On the subject of webclient sound, I'm thinking of providing a "fallback" var to the sound datum so that it's easier to handle cross-browser support. Chrome appears to support both .mp3 and .ogg, and Firefox handles .ogg, but IE and iOS are .mp3 only. DS can handle .ogg and .wav, but not (due to licensing) .mp3.
|
I'd drop IE support. Has VERY little audio API ability. Edge is a better target.
|
IE = Edge as far as anyone cares. Edge still has a lot of the same legacy lack of support for some stuff.
|
This is not urgent, but it's something we'd like to see in the near future. Just a prod!
There does seem to be a cross-platform solution to this, though: https://developer.mozilla.org/en-US/docs/Web/API/ AudioContext/createPanner |
I've been doing a lot of webclient profiling and updating this week, so I'll take a look at what's doable in the 3D sound arena.
|
Okay, awesome. We're now adding SFX/music to our game so this would be good to have, and an essential for the webclient in general IMO.
|
I've been working on code for this today and so far it's looking good. I need to run tests later to make sure it works. While I'm at it, I'm also trying to push support for frequency, various SOUND_UPDATE features that aren't yet supported, and a new concept for fallback audio files.
Fallback audio will work like this: sound(list('myfile.ogg','myfile.mp3'), ...) ONLY newer servers will recognize the list format. So far I haven't built in DS support for this yet, so the first file should be the one you plan to use for DS. I'm working on webclient support and need to figure out how to use the correct file. In this way, differing browser audio support can be dealt with. |
Lummox JR resolved issue with message:
The webclient now supports 3D sounds and more SOUND_UPDATE features. |
The webclient does not seem to support 3D sounds in the latest byond version (sound.x, sound.y, sound.z, sound.environment, etc).
You can test this using Foomer's sound library: http://www.byond.com/developer/Foomer/SoundSystem It works as intended in DreamSeeker, but not so much in the webclient. SOUND_UPDATE seems to work fine, however. |
In response to Lummox JR
|
|
Yeah, I'm using Chrome too. Hmm. I'll look into it.
|
Hm... I'm not seeing anything that could cause it on my end. Still looking, though.
|
1
2