2013-11-26 23:07:27 -07:00
|
|
|
#include <obs.h>
|
2013-09-30 19:37:13 -07:00
|
|
|
#include "test-input-exports.h"
|
|
|
|
|
2014-01-28 00:06:46 -07:00
|
|
|
const char *inputs[] = {
|
|
|
|
#ifdef __APPLE__
|
|
|
|
"osx-desktop-test",
|
|
|
|
#endif
|
|
|
|
"random",
|
|
|
|
"sinewave"
|
|
|
|
};
|
|
|
|
|
2013-09-30 19:37:13 -07:00
|
|
|
const char *filters[] = {"test"};
|
|
|
|
|
2013-11-13 06:24:20 -07:00
|
|
|
uint32_t module_version(uint32_t in_version)
|
|
|
|
{
|
|
|
|
return LIBOBS_API_VER;
|
|
|
|
}
|
|
|
|
|
2013-09-30 19:37:13 -07:00
|
|
|
bool enum_inputs(size_t idx, const char **name)
|
|
|
|
{
|
|
|
|
if (idx >= (sizeof(inputs)/sizeof(const char*)))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
*name = inputs[idx];
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool enum_filters(size_t idx, const char **name)
|
|
|
|
{
|
|
|
|
if (idx >= (sizeof(filters)/sizeof(const char*)))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
*name = filters[idx];
|
|
|
|
return true;
|
|
|
|
}
|