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

@@ -60,6 +60,7 @@ struct audio_data {
const void *data;
uint32_t frames;
uint64_t timestamp;
float volume;
};
struct audio_info {