vMix Forums
»
General
»
General Discussion
»
API Audio Support (SetVolume) - ability to fade? Range for 'value' property?
Rank: Advanced Member
Groups: Registered
Joined: 5/28/2013(UTC) Posts: 54 Location: USA
Thanks: 4 times Was thanked: 3 time(s) in 3 post(s)
|
Hi, Re version 10.0.0.55, I'm having mixed success using 'SetVolume' on an audio input - a couple of questions:
- Is 'value' the parameter for setting the volume level, and if so what's the scale, for example '0 - 255', '0 - 32767', etc? - Is 'duration' supported with 'SetVolume' to allow the audio to fade in and out over a period of milliseconds? - Is there any dependency of the input being active? In my case this is background audio, so it'd never be the active input. By clearing the pause/restart/etc properties this seems to work well - basically I'd always be playing/pausing and setting volume of inactive input(s). - Any way to query for current volume level of an input? Status XML provides whether input is muted or not, but not current volume level (was hoping to figure out scale from that ;)
Different question, but somewhat related:
- Is there a deterministic way to play and pause via 'PlayPause'? It seems to be designed as a toggle, but that means testing the current state before using it if there's any doubt. Any chance of 'value' being used for the desired status, like 1 for 'play', and 0 for 'pause'?
Thanks! David
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/13/2010(UTC) Posts: 5,208 Location: Gold Coast, Australia Was thanked: 4288 time(s) in 1520 post(s)
|
Hi David,
The SetVolume range is from 0 to 100 For example:
?Function=SetVolume&Input=1&Value=50
There is no automated fading available, so it would need to be programmed with a timer of some kind. There is currently no way to query the volume, if you only need to turn the volume on or off you can use AudioOn or AudioOff commands.
The next release will have seperate Play/Pause functions available.
Regards,
Martin vMix
|
2 users thanked admin for this useful post.
|
|
|
vMix Forums
»
General
»
General Discussion
»
API Audio Support (SetVolume) - ability to fade? Range for 'value' property?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close