Audio busses/streams & masterbus not 'mastering'

Post any engine-related development questions or issues you are having to receive advice, support, or help.
Post Reply
Owen Lloyd
Posts: 30
Joined: Wed Jul 19, 2023 2:37 am
Location: Brisbane Australia

Perhaps someone can help me with audio. The attached image shows the bus and the background music node setup.

audiosetup.png
audiosetup.png (249.43 KiB) Viewed 2445 times
As I understood this setup, the music streams feed into the master which then modifies the output over and above any modification made via a feeder stream.

However ...

When, in code, I change the volume of the music streams sound volume is adjusted as expected. When I change the volume of the master stream, nothing happens, volume defiantly stays unchanged.

The changing is done using sliders/signals and the code def refers to the right bus.
Owen Lloyd
Posts: 30
Joined: Wed Jul 19, 2023 2:37 am
Location: Brisbane Australia

I cant see why adjusting volume on the master does not impact the busses feeding into it.

As a workaround I will use the master as a percentage that I apply to the other volumes before adjusting streams
  • whicheveraudiostream.volume_db = value * adjustmentpercent
and not touch the master bus at all.

If anyone can point out why using that bus arrangement and adjusting master ( audiomaster.volume_db = value ) has no effect on music or sfx please let me know. Thanks. :)
User avatar
grey
Posts: 26
Joined: Tue Jul 18, 2023 10:01 am
Contact:

i don't see why that arrangement wouldn't work, maybe the error lies elsewhere or a bug is occurring, sometimes restarting the editor fixes such issues
@lifeisspoon on twitter
Owen Lloyd
Posts: 30
Joined: Wed Jul 19, 2023 2:37 am
Location: Brisbane Australia

Hi grey, thanks for the response.
grey wrote: Wed Jul 26, 2023 2:33 pm i don't see why that arrangement wouldn't work, maybe the error lies elsewhere or a bug is occurring, sometimes restarting the editor fixes such issues
I am sure I am doing something wrong, just not sure what, lol.

I have created a project with just two streams, master and music, and associated sliders. Minimal code. Can't make it work.

I am not sure what the forum rules are on attaching zips, if allowed and if anyone wants I will upload a zip or 7z containing the project.
User avatar
stayathomedev
Site Admin
Posts: 82
Joined: Mon Jul 17, 2023 2:42 pm

Owen Lloyd wrote: Wed Jul 26, 2023 7:13 pm I am not sure what the forum rules are on attaching zips, if allowed and if anyone wants I will upload a zip or 7z containing the project.
Zip files are fine...unless Github make more sense to host it maybe and see the files directly.

Not sure why it's not working either. Did you try adding a secondary bus for the individual busses and altering that volume?
Owen Lloyd
Posts: 30
Joined: Wed Jul 19, 2023 2:37 am
Location: Brisbane Australia

stayathomedev wrote: Wed Jul 26, 2023 9:11 pm Did you try adding a secondary bus for the individual busses and altering that volume?
Hi, not sure what that entails.

On the main project I have three sliders, Master, Music and SFX.

I have 2 x music streams/busses and audiostreams which I use when tweening transitions. Volume control on those works fine so the user can control music volume that way, and sfx volume. I just set their volume_db to the slider value which has range of -50 to 5, and which mutes when hitting -50.

I assumed that as they fed into the master volume changing that would override. I think I am missing the point with the master but have not had an "aha" moment.

Anyhow it is It is no biggie. What I am doing now is using the master slider as a value of 1 to 100 and applying that to the individual stream volumes as a percentage (1 to mute)

Thanks everyone.


PS: I would have to github or something the file as the attachment limit is 256 Kib and I cant get down to that even with 7zip and the bare bones. :)
Post Reply