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'] == '': ...@@ -49,7 +49,7 @@ if env['platform'] == '':
if env['platform'] == "osx": if env['platform'] == "osx":
env['target_path'] += 'osx/' env['target_path'] += 'osx/'
cpp_library += '.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(CXXFLAGS=['-std=c++17'])
env.Append(LINKFLAGS=['-arch', 'x86_64','-framework', env.Append(LINKFLAGS=['-arch', 'x86_64','-framework',
'CoreAudio', '-framework', 'CoreFoundation']) 'CoreAudio', '-framework', 'CoreFoundation'])
......
...@@ -61,7 +61,7 @@ int Gdpd::init(int nbInputs, int nbOutputs, int sampleRate, int bufferSize) { ...@@ -61,7 +61,7 @@ int Gdpd::init(int nbInputs, int nbOutputs, int sampleRate, int bufferSize) {
RtAudio::StreamParameters outParams, inParams; RtAudio::StreamParameters outParams, inParams;
unsigned int sr = m_audio.getDeviceInfo(outParams.deviceId).preferredSampleRate; unsigned int sr = m_audio.getDeviceInfo(outParams.deviceId).preferredSampleRate;
outParams.deviceId = m_audio.getDefaultOutputDevice(); outParams.deviceId = m_audio.getDefaultOutputDevice();
inParams.deviceId = m_audio.getDefaultOutputDevice(); inParams.deviceId = m_audio.getDefaultInputDevice();
outParams.nChannels = m_nbInputs = nbInputs; outParams.nChannels = m_nbInputs = nbInputs;
inParams.nChannels = m_nbOutputs = nbOutputs; inParams.nChannels = m_nbOutputs = nbOutputs;
m_bufferFrames = bufferSize; 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.
Please register or to comment