matthes
New Member
Posts: 14
Posts: 14
|
Post by matthes on May 12, 2015 9:52:29 GMT
Hello, i am just starting to use aaa master Audio and mainly use the Playmaker actions. So far everything works fine but i miss some Get (Return) actions.
I tried to create my own "MasterAudioBusGetVolume" action but i cannot find the right command in the api.
The closest thing i found is:
static float DarkTonic.MasterAudio.MasterAudio.GetBusVolume ( MasterAudioGroup maGroup )
But i dont get this to work and i want to get the bus volume based on the bus name (string) not a MasterAudioGroup ....
Additionally I would also need a "MasterAudioPlaylistGetVolume" action.
I am glad for any hints how the code works, so i can create the actions on my own.
Thanks, Matthias
|
|
|
Post by DarkTonic Dev on May 12, 2015 15:29:07 GMT
|
|
matthes
New Member
Posts: 14
Posts: 14
|
Post by matthes on May 13, 2015 9:00:19 GMT
I attached one action i already created. in the moment i would look for: Get Bus: Volume Get Playlist: Volume, Clip Get Group: Volume, Pitch, Variation Basically what I can set i want also to get. I would make versatile actions (e.g. one action for group which could receive volume, pitch , variation at once). If you come up with actions it would be great. On the other hand if you give me a code example how to grab a bus and retrieve its volume property into a float var I am happy to help :-) More action requests might come up while working with the plugin, but often i can solve them by myself (and can share them here).
|
|
|
Post by DarkTonic Dev on May 14, 2015 2:28:14 GMT
Thanks for that custom action. We will include it in the next update! GetPlaylist Volume + Clip: I think you're confused about Playlists. Each Playlist does not have its own volume, and can have multiple clips. Maybe you're wanting volume and clip for PlaylistController (which is what hosts a Playlist). i.e. Current clip and Controller volume? Group Volume is easy, but as far as Group pitch and Variation, I'm not sure what you're hoping to get there, since there can be X Variations in a Group, each with their own pitch, fading settings, random pitch, etc. Here's a bus action that gets all possible bus fields (7 I think). ATTACHMENTS: MasterAudioGetBusProps.cs (2.44 KB)
|
|
matthes
New Member
Posts: 14
Posts: 14
|
Post by matthes on May 14, 2015 10:21:05 GMT
Thanks for the action! Thats what i need.
Regarding Playlists : Yes i meant: Playlist Controller (not synchronized!, so the playlist is playing sequential) Get: Controller Volume , Current Playlist, Current AudioClip in Playlist (and maybe even Current AudioClips Volume/Pitch). Actually I am a bit confused by the "MasterAudio.PlaylistMasterVolume". Does this set the Volume of the PlaylistController? Its working, but changes by script are not reflected by the Playlist Controller slider in the inspector...
Regarding Groups: After rethinking i see the issue that there is not necessarily only one current variation at a time per group. So you need to reference the group name and the variation name in the action to get the variation current pitch and variation current volume.
This NOT something i need urgently, but this would complete the action set in my opinion. So we could do logic based on the current state of the plugin (or to reflect in the GUI)
Like i said i am just starting to work with the plugin and get an understanding of the workflow. I hope it makes sense what i am asking for :-)
|
|
|
Post by DarkTonic Dev on May 14, 2015 15:23:56 GMT
PlaylistMasterVolume adjusts the relative volume of all Playlist Controllers, visible in the Audio Sources only. Volume is calculated by PlaylistMasterVolume * Controller Volume * clip volume.
I'll look into doing the others. Thanks!
|
|
|
Post by DarkTonic Dev on May 19, 2015 0:01:23 GMT
I don't think I can return anything that's usable by Playmaker for "current playlist". That's my own object, not an FSMString or anything like that. Same thing for audio clip. I can store: playlist volume, clip volume, clip pitch.
|
|
|
Post by DarkTonic Dev on May 19, 2015 3:35:23 GMT
|
|