diff --git a/SConstruct b/SConstruct index d00258f..387b32f 100644 --- a/SConstruct +++ b/SConstruct @@ -49,7 +49,7 @@ if env['platform'] == '': if env['platform'] == "osx": env['target_path'] += 'osx/' cpp_library += '.osx' - env.Append(CPPDEFINES=['__MACOSX_CORE__']) + env.Append(CPPDEFINES=['__MACOSX_CORE__', 'HAVE_UNISTD_H']) env.Append(CXXFLAGS=['-std=c++17']) env.Append(LINKFLAGS=['-arch', 'x86_64','-framework', 'CoreAudio', '-framework', 'CoreFoundation']) diff --git a/src/gdpd.cpp b/src/gdpd.cpp index a86f988..09951d6 100644 --- a/src/gdpd.cpp +++ b/src/gdpd.cpp @@ -61,7 +61,7 @@ int Gdpd::init(int nbInputs, int nbOutputs, int sampleRate, int bufferSize) { RtAudio::StreamParameters outParams, inParams; unsigned int sr = m_audio.getDeviceInfo(outParams.deviceId).preferredSampleRate; outParams.deviceId = m_audio.getDefaultOutputDevice(); - inParams.deviceId = m_audio.getDefaultOutputDevice(); + inParams.deviceId = m_audio.getDefaultInputDevice(); outParams.nChannels = m_nbInputs = nbInputs; inParams.nChannels = m_nbOutputs = nbOutputs; m_bufferFrames = bufferSize; diff --git a/src/rtaudio/RtAudio.os b/src/rtaudio/RtAudio.os index 0375183..50f8614 100644 Binary files a/src/rtaudio/RtAudio.os and b/src/rtaudio/RtAudio.os differ