You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Added support for single channel inputs for CoreAudio
This commit is contained in:
@@ -52,6 +52,7 @@ class AudioDriverCoreAudio : public AudioDriver {
|
||||
|
||||
int mix_rate;
|
||||
unsigned int channels;
|
||||
unsigned int capture_channels;
|
||||
unsigned int buffer_frames;
|
||||
|
||||
Vector<int32_t> samples_in;
|
||||
@@ -60,6 +61,7 @@ class AudioDriverCoreAudio : public AudioDriver {
|
||||
#ifdef OSX_ENABLED
|
||||
Array _get_device_list(bool capture = false);
|
||||
void _set_device(const String &device, bool capture = false);
|
||||
void _input_write_sample(int32_t sample);
|
||||
|
||||
static OSStatus input_device_address_cb(AudioObjectID inObjectID,
|
||||
UInt32 inNumberAddresses, const AudioObjectPropertyAddress *inAddresses,
|
||||
|
||||
Reference in New Issue
Block a user