-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathaudio-monitor-filter.h
28 lines (26 loc) · 1.18 KB
/
audio-monitor-filter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#include "obs.h"
#ifdef __cplusplus
extern "C" {
#endif
struct audio_monitor;
void audio_monitor_stop(struct audio_monitor *audio_monitor);
void audio_monitor_start(struct audio_monitor *audio_monitor);
void audio_monitor_audio(void *data, struct obs_audio_data *audio);
void audio_monitor_set_volume(struct audio_monitor *audio_monitor, float volume);
void audio_monitor_set_balance(struct audio_monitor *audio_monitor, float balance);
void audio_monitor_set_mono(struct audio_monitor *audio_monitor, bool mono);
void audio_monitor_set_format(struct audio_monitor *audio_monitor, enum audio_format format);
void audio_monitor_set_samples_per_sec(struct audio_monitor *audio_monitor, long long samples_per_sec);
struct audio_monitor *audio_monitor_create(const char *device_id, const char *source_name, int port);
void audio_monitor_destroy(struct audio_monitor *audio_monitor);
const char *audio_monitor_get_device_id(struct audio_monitor *audio_monitor);
bool updateFilterName(void *data, const char *name, const char *id);
bool updateFilterId(void *data, const char *name, const char *id);
struct updateFilterNameData {
char *device_id;
char *device_name;
};
#ifdef __cplusplus
}
#endif