36 lines
570 B
C
36 lines
570 B
C
#include <obs.h>
|
|
#include "test-input-exports.h"
|
|
|
|
const char *inputs[] = {
|
|
#ifdef __APPLE__
|
|
"osx_desktop_test",
|
|
#endif
|
|
"random",
|
|
"sinewave"
|
|
};
|
|
|
|
const char *filters[] = {"test"};
|
|
|
|
uint32_t module_version(uint32_t in_version)
|
|
{
|
|
return LIBOBS_API_VER;
|
|
}
|
|
|
|
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;
|
|
}
|