ID:1992606
 
Resolved
The webclient now supports 3D sounds and more SOUND_UPDATE features.

Additionally, you can create a sound with fallback files via sound(list(first_choice,second_choice,third_choice)) or sound.file = list(...). For best compatibility, it is suggested that you use an .ogg sound as the first choice, and .mp3 as the backup. Using a list of possible sounds is only supported with servers of this version or higher; Dream Seeker does not use this feature yet and will always use the first-choice sound.
Applies to:Webclient
Status: Resolved (510.1341)

This issue has been resolved.
Simply put, I'd like the ability to use 3D sound features in the webclient, which, as I understand, are not currently supported.

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
Another bumperino.
This is still a highly desired feature.
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.

Additionally, you can create a sound with fallback files via sound(list(first_choice,second_choice,third_choice)) or sound.file = list(...). For best compatibility, it is suggested that you use an .ogg sound as the first choice, and .mp3 as the backup. Using a list of possible sounds is only supported with servers of this version or higher; Dream Seeker does not use this feature yet and will always use the first-choice sound.
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.
It might depend on your browser. It worked for me in Chrome.
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.
Very odd. 3D sounds work in neither Chrome or Firefox for me. What version of Chrome are you using, Lummox? I'm on "50.0.2661.102 m"
Page: 1 2