Add (temporary terrible) volume controls

- Add volume control

   These volume controls are basically nothing more than sliders.  They
   look terrible and hopefully will be as temporary as they are
   terrible.

 - Allow saving of specific non-user sources via obs_load_source and
   obs_save_source functions.

 - Save data of desktop/mic audio sources (sync data, volume data, etc),
   and load the data on startup.

 - Make it so that a scene is created by default if first time using the
   application.  On certain operating systems where supported, a default
   capture will be created.  Desktop capture on mac, particularly.  Not
   sure what to do about windows because monitor capture on windows 7 is
   completely terrible and is bad to start users off with.
This commit is contained in:
jp9000
2014-05-03 22:54:38 -07:00
parent fc0afd5c2d
commit 52746c2523
15 changed files with 688 additions and 254 deletions

View File

@@ -16,6 +16,9 @@
#pragma once
/* Oh no I have my own com pointer class, the world is ending, how dare you
* write your own! */
template<typename T> class ComPtr {
T *ptr;
@@ -77,6 +80,9 @@ public:
inline T *Get() const {return ptr;}
/* nabbed this one from virtualdub */
inline T **operator~() {return Assign();}
inline operator T*() const {return ptr;}
inline T *operator->() const {return ptr;}