mikolaj
New Member
Posts: 3
Posts: 3
|
Post by mikolaj on Sept 23, 2021 16:09:21 GMT
I' am using MasterAudio.PlaySound3DFollowTransform(transform) to play a sound. It works alright with the first call, but then, until the firstly summoned sound won't stop playing, it returns null. I am calling it with the same transform. I just need to play more than one sound of the same variation, under the same transform. How do I do that?
|
|
|
Post by DarkTonic Dev on Sept 23, 2021 16:22:18 GMT
Probably the most often asked question. When you attempt to play the 2nd voice you will get a message in the Console like the following:
T: 0.8695788 - MasterAudio: All 1 children of Arrow were busy. Will not play this sound for this instance. If you need more voices, increase the 'Voices / Weight' field on the Variation(s) in your Sound Group.
What you need to do is precisely what it says there: increase the Voices / Weight field to the maximum of that sound you will allow to play simultaneously. It is likely set to 1.
Generally, we try to provide instructions on how to remedy in our Console messages, so do look there in the future so that you won't need to wait for my response.
-Brian
|
|
mikolaj
New Member
Posts: 3
Posts: 3
|
Post by mikolaj on Sept 24, 2021 6:53:08 GMT
Probably the most often asked question. When you attempt to play the 2nd voice you will get a message in the Console like the following: T: 0.8695788 - MasterAudio: All 1 children of Arrow were busy. Will not play this sound for this instance. If you need more voices, increase the 'Voices / Weight' field on the Variation(s) in your Sound Group. What you need to do is precisely what it says there: increase the Voices / Weight field to the maximum of that sound you will allow to play simultaneously. It is likely set to 1. Generally, we try to provide instructions on how to remedy in our Console messages, so do look there in the future so that you won't need to wait for my response. -Brian I am aware of that, and it is not it . My voices in all variations are increased to 5 just in case in that sound group. My problem comes with the usage of method MasterAudio.PlaySound3DFollowTransform(transform). Until the sound stops, I get null from that method, despite having still available voices. I get no messages in the console.
|
|
mikolaj
New Member
Posts: 3
Posts: 3
|
Post by mikolaj on Sept 24, 2021 7:03:21 GMT
Probably the most often asked question. When you attempt to play the 2nd voice you will get a message in the Console like the following: T: 0.8695788 - MasterAudio: All 1 children of Arrow were busy. Will not play this sound for this instance. If you need more voices, increase the 'Voices / Weight' field on the Variation(s) in your Sound Group. What you need to do is precisely what it says there: increase the Voices / Weight field to the maximum of that sound you will allow to play simultaneously. It is likely set to 1. Generally, we try to provide instructions on how to remedy in our Console messages, so do look there in the future so that you won't need to wait for my response. -Brian I am aware of that, and it is not it . My voices in all variations are increased to 5 just in case in that sound group. My problem comes with the usage of method MasterAudio.PlaySound3DFollowTransform(transform). Until the sound stops, I get null from that method, despite having still available voices. I get no messages in the console. Alright, I debugged through the MA code now, and the problem was with the bus voice limit. I should debug through it first . However it would be nice to have a log there, about bus voice limit reached as well After some extra debugging it was the FindOldestSoundOnBus, who returns null, with my bus voice limit set to one, and StopOldestSound settings set. It such case it gives no message, just returns null. I will simply increase my bus voice limit, as for now I do not need it to only play one sound (I am handling it through my own code)
|
|
|
Post by DarkTonic Dev on Sept 24, 2021 18:51:27 GMT
FindOldestSoundOnBus isn't supposed to be able to return null if there's a voice playing. The oldest would be the only voice playing. You'll have to let me know the particular circumstances that make it possible.
Thanks, -Brian
|
|