add audio.get_input_devices_names()

This commit is contained in:
MihailRis 2025-10-23 22:08:30 +03:00
parent 6b9a408e6d
commit b11bdf0bcc
6 changed files with 55 additions and 0 deletions

View file

@ -370,6 +370,7 @@ namespace audio {
glm::vec3 lookAt,
glm::vec3 up
) = 0;
virtual std::vector<std::string> getInputDeviceNames() = 0;
virtual void update(double delta) = 0;
/// @brief Check if backend is an abstraction that does not internally
@ -434,6 +435,10 @@ namespace audio {
uint sampleRate, uint channels, uint bitsPerSample
);
/// @brief Retrieve names of available audio input devices
/// @return list of device names
std::vector<std::string> get_input_devices_names();
/// @brief Configure 3D listener
/// @param position listener position
/// @param velocity listener velocity (used for Doppler effect)