mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
add audio.get_input_devices_names()
This commit is contained in:
parent
6b9a408e6d
commit
b11bdf0bcc
6 changed files with 55 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue