From 3413f193c1951cb724eb563f4beab472971e73c8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 4 Mar 2023 12:57:30 +0100 Subject: Add opus/flac audio options (only supported my mp4/mkv) --- include/sound.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/sound.hpp b/include/sound.hpp index 6ffa6c5..9ff6b32 100644 --- a/include/sound.hpp +++ b/include/sound.hpp @@ -35,13 +35,18 @@ struct MergedAudioInputs { std::vector audio_inputs; }; +typedef enum { + S16, + S32 +} AudioFormat; + /* Get a sound device by name, returning the device into the @device parameter. The device should be closed with @sound_device_close after it has been used 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 *device_name, const char *description, unsigned int num_channels, unsigned int period_frame_size); +int sound_device_get_by_name(SoundDevice *device, const char *device_name, const char *description, unsigned int num_channels, unsigned int period_frame_size, AudioFormat audio_format); void sound_device_close(SoundDevice *device); -- cgit v1.2.3