diff --git a/SConstruct b/SConstruct index d00258f307229f9ad7f4ab4fcf30c86e1e125274..387b32fc8d46974f1e02f92ae08c51ce391dad0f 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 a86f988673d4a4b1257706f12495e9add04f436e..09951d61f6c7321b1b79967e3922aa29c781fd8f 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 0375183822ba8f282b98a749a539fe43f2a7b4c7..50f86147f61cef09e475fd4f2ec43082f659e092 100644 Binary files a/src/rtaudio/RtAudio.os and b/src/rtaudio/RtAudio.os differ