add audio.get_output_devices_names, set_input_device, set_output_device

This commit is contained in:
MihailRis
2025-10-23 22:54:05 +03:00
parent b11bdf0bcc
commit 6df27b8992
6 changed files with 169 additions and 42 deletions
+7 -3
View File
@@ -172,8 +172,6 @@ namespace audio {
void freeSource(uint source);
void freeBuffer(uint buffer);
std::vector<std::string> getAvailableDevices() const;
std::unique_ptr<Sound> createSound(
std::shared_ptr<PCM> pcm, bool keepPCM
) override;
@@ -183,11 +181,17 @@ namespace audio {
) override;
std::unique_ptr<InputDevice> openInputDevice(
uint sampleRate, uint channels, uint bitsPerSample
const char* deviceName,
uint sampleRate,
uint channels,
uint bitsPerSample
) override;
std::vector<std::string> getOutputDeviceNames() override;
std::vector<std::string> getInputDeviceNames() override;
void setOutputDevice(const std::string& deviceName) override;
void setListener(
glm::vec3 position,
glm::vec3 velocity,