Add WASAPI audio capture

- Add WASAPI audio capture for windows, input and output

 - Check for null pointer in os_dlopen

 - Add exception-safe 'WinHandle' and 'CoTaskMemPtr' helper classes that
   will automatically call CloseHandle on handles and call CoTaskMemFree
   on certain types of memory returned from windows functions

 - Changed the wide <-> MBS/UTF8 conversion functions so that you use
   buffers (like these functions are *supposed* to behave), and changed
   the ones that allocate to a different naming scheme to be safe
This commit is contained in:
jp9000
2014-03-04 07:07:13 -07:00
parent 2fd57ed7f5
commit 348588254c
21 changed files with 1039 additions and 50 deletions

View File

@@ -63,11 +63,14 @@ void OBSBasic::OBSInit()
signal_handler_connect(obs_signalhandler(), "channel_change",
OBSBasic::ChannelChanged, this);
/* TODO: this is a test */
/* TODO: this is a test, all modules will be searched for and loaded
* automatically later */
obs_load_module("test-input");
obs_load_module("obs-ffmpeg");
#ifdef __APPLE__
obs_load_module("mac-capture");
#elif _WIN32
obs_load_module("win-wasapi");
#endif
/* HACK: fixes a qt bug with native widgets with native repaint */