Implement volumes for sources

- Added a volume variable to the obs_source structure and implemented
   functions for manipulating source volume.

 - Added a volume variable to the audio_data structure so that the
   volume will be applied when mixing.
This commit is contained in:
jp9000
2014-01-07 11:03:15 -07:00
parent 4fe3c47216
commit 3838abe1f4
4 changed files with 22 additions and 1 deletions

View File

@@ -408,6 +408,12 @@ EXPORT signal_handler_t obs_source_signalhandler(obs_source_t source);
/** Returns the procedure handler for a source */
EXPORT proc_handler_t obs_source_prochandler(obs_source_t source);
/** Sets the volume for a source that has audio output */
EXPORT void obs_source_setvolume(obs_source_t source, float volume);
/** Gets the volume for a source that has audio output */
EXPORT float obs_source_getvolume(obs_source_t source);
/* ------------------------------------------------------------------------- */
/* Functions used by sources */