Skip to content
Snippets Groups Projects
Commit 733c0d8b authored by BERTHAUT Florent's avatar BERTHAUT Florent
Browse files

Fixed default in and out

parent a5f28c51
No related branches found
No related tags found
No related merge requests found
......@@ -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'])
......
......@@ -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;
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment