Bug Issue: Volume/Panning varies when using the play sound block


Pages: 1

irock

  • Master Stencyler
  • *
February 27, 2019, 04:33:07 pm
If you use the basic play sound block (the one that doesn't have a channel field), the sound's volume and panning can vary depending on which channel is automatically assigned to it. This is unintuitive, because there's no indication to the user that they should be concerned with audio channels when using this block, and they have no way of knowing which audio channel it's going to play on.
« Last Edit: February 27, 2019, 04:33:51 pm by irock »


Justin

  • Master Stencyler
  • *
June 28, 2019, 07:59:42 pm
This was discussed on discord a while ago and I forgot about it. I initially wanted to keep this the way it is, but eventually realized that this is the worse option.

Quote
Cory Martin 02/27/2019
I think something odd is going on with channel volumes
I've added a distance based volume feature for sound effects
and I'm occasionally noticing some oddities with sounds that use the standard "play sound" block without specific channel assignment
like I once collected a coin that didn't make a sound at all
and sometimes I swear this one sound is louder in the left speaker

justin 02/27/2019
volume and panning don't reset when different sounds are played
If you set volume/panning for a channel, that's what the channel will use until you change it.

Cory Martin 02/27/2019
I'm encountering the shortfalls of that then
I'm not sure that's a good solution because now the basic sound block can't be used reliably
and I'll need to set up my own audio channel manager to play sounds
if there were something like a "play [sound] at volume []" block it wouldn't be much of an issue
because otherwise in order to use the basic sound block you'll need to know which channel the sound is going to play on so you can set the volume of the channel, but there's no way to get that information

So, what we'll do now:
- All "play/loop sound" blocks always get the default options.
- if you want specific volume/panning, play sound on a channel and then immediately set the properties for that channel.
« Last Edit: June 28, 2019, 09:47:43 pm by Justin »


Justin

  • Master Stencyler
  • *
June 28, 2019, 09:46:42 pm
Changed in b10404.
  • Status changed from New to Resolved
  • Issue Assigned from (none) to Justin


Pages: 1

Details

  • Reported
    February 27, 2019, 04:33:07 pm
  • Updated
    June 28, 2019, 09:46:42 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Engine

Tags