Perhaps someone can help me with audio. The attached image shows the bus and the background music node setup.
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.
Audio busses/streams & masterbus not 'mastering'
-
- 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
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.
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
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.
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
-
- Posts: 30
- Joined: Wed Jul 19, 2023 2:37 am
- Location: Brisbane Australia
Hi grey, thanks for the response.
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.
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.
- stayathomedev
- Site Admin
- Posts: 82
- Joined: Mon Jul 17, 2023 2:42 pm
Zip files are fine...unless Github make more sense to host it maybe and see the files directly.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.
Not sure why it's not working either. Did you try adding a secondary bus for the individual busses and altering that volume?
Stay at home dad and dev
Youtube Channel - https://www.youtube.com/channel/UCDshKI ... CzApleuV8w
Twitter - https://twitter.com/StayAtHomeDev
Youtube Channel - https://www.youtube.com/channel/UCDshKI ... CzApleuV8w
Twitter - https://twitter.com/StayAtHomeDev
-
- Posts: 30
- Joined: Wed Jul 19, 2023 2:37 am
- Location: Brisbane Australia
Hi, not sure what that entails.stayathomedev wrote: ↑Wed Jul 26, 2023 9:11 pm Did you try adding a secondary bus for the individual busses and altering that volume?
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.