Allow giving audio inputs names by prefixing them with <name>/

This commit is contained in:
dec05eba committed 2022-10-02 01:04:57 +02:00
1 parent a1f7fedcb8
commit 5871abc42f
3 files changed
+30 -20

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ struct AudioInput {
to clean up internal resources.
Returns 0 on success, or a negative value on failure.
*/
int sound_device_get_by_name(SoundDevice *device, const char *name = "default", unsigned int num_channels = 2, unsigned int period_frame_size = 32);
int sound_device_get_by_name(SoundDevice *device, const char *device_name, const char *description, unsigned int num_channels, unsigned int period_frame_size);
void sound_device_close(SoundDevice *device);