Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions framework/audio/driver/platform/osx/osxaudiodriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,19 @@ class OSXAudioDriver : public IAudioDriver
std::vector<samples_t> availableOutputDeviceBufferSizes() const override;
std::vector<sample_rate_t> availableOutputDeviceSampleRates() const override;

struct Data;

private:
static void OnFillBuffer(void* context, OpaqueAudioQueue* queue, AudioQueueBuffer* buffer);
static void logError(const std::string message, OSStatus error);

void initDeviceMapListener();
bool audioQueueSetDeviceName(const AudioDeviceID& deviceId);
void doClose();

AudioDeviceID defaultDeviceId() const;
UInt32 osxDeviceId() const;
std::optional<int> getAudioDeviceId(const AudioDeviceID& deviceId) const;

struct Data;
UInt32 osxDeviceId() const;

std::shared_ptr<Data> m_data = nullptr;
std::unique_ptr<Data> m_data = nullptr;
async::Channel<Spec> m_activeSpecChanged;
std::map<unsigned int, std::string> m_outputDevices = {}, m_inputDevices = {};
mutable std::mutex m_devicesMutex;
Expand Down
Loading