(API Change) Rename source_audio structure
Rename source_audio to obs_source_audio to make it more consistent with the rest of the API
This commit is contained in:
parent
45eec06891
commit
0961af6e66
6 changed files with 16 additions and 15 deletions
|
|
@ -357,13 +357,13 @@ bool WASAPISource::ProcessCaptureData()
|
|||
return false;
|
||||
}
|
||||
|
||||
source_audio data = {};
|
||||
data.data[0] = (const uint8_t*)buffer;
|
||||
data.frames = (uint32_t)frames;
|
||||
data.speakers = speakers;
|
||||
data.samples_per_sec = sampleRate;
|
||||
data.format = format;
|
||||
data.timestamp = useDeviceTiming ?
|
||||
obs_source_audio data = {};
|
||||
data.data[0] = (const uint8_t*)buffer;
|
||||
data.frames = (uint32_t)frames;
|
||||
data.speakers = speakers;
|
||||
data.samples_per_sec = sampleRate;
|
||||
data.format = format;
|
||||
data.timestamp = useDeviceTiming ?
|
||||
ts*100 : os_gettime_ns();
|
||||
|
||||
obs_source_output_audio(source, &data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue