mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Time based audio latency, test, might fix some shits
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
typedef struct {
|
||||
void *handle;
|
||||
unsigned int frames;
|
||||
double latency_seconds;
|
||||
} SoundDevice;
|
||||
|
||||
struct AudioInput {
|
||||
@@ -53,9 +54,9 @@ void sound_device_close(SoundDevice *device);
|
||||
|
||||
/*
|
||||
Returns the next chunk of audio into @buffer.
|
||||
Returns the number of frames read, or a negative value on failure.
|
||||
Returns the number of bytes read, or a negative value on failure.
|
||||
*/
|
||||
int sound_device_read_next_chunk(SoundDevice *device, void **buffer);
|
||||
int sound_device_read_next_chunk(SoundDevice *device, void **buffer, double timeout_sec);
|
||||
|
||||
std::vector<AudioInput> get_pulseaudio_inputs();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user