Skip to content

Commit

Permalink
Merge pull request #13 from osadsanu/patch-1
Browse files Browse the repository at this point in the history
JackAudio load OSX plugin
  • Loading branch information
rodrigodzf authored Aug 1, 2019
2 parents 1adf496 + 331c748 commit 9d3a32c
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions sample_jackscene/Assets/JackAudio/JackWrapper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2016 Rodrigo Diaz
// Copyright (C) 2016 Rodrigo Diaz
//
// This file is part of JackAudioUnity.
//
Expand Down Expand Up @@ -51,15 +51,25 @@ static public void GetMixedData(float[] buffer)
}

#region DllImport
[DllImport("AudioPlugin-JackAudioForUnity")]
#if UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
[DllImport("JackAudioForUnity")]
private static extern bool CreateClient(int inchannels, int outchannels);
[DllImport("JackAudioForUnity")]
private static extern bool DestroyClient();
[DllImport("JackAudioForUnity")]
private static extern void GetAllData(float[] buffer);
[DllImport("JackAudioForUnity")]
private static extern void SetAllData(float[] buffer);
#else
[DllImport("AudioPlugin-JackAudioForUnity")]
private static extern bool CreateClient(int inchannels, int outchannels);
[DllImport("AudioPlugin-JackAudioForUnity")]
private static extern bool DestroyClient();
[DllImport("AudioPlugin-JackAudioForUnity")]
private static extern void GetAllData(float[] buffer);
[DllImport("AudioPlugin-JackAudioForUnity")]
private static extern void SetAllData(float[] buffer);

#endif
// [DllImport("UnityJackAudio")]
// public static extern void SetDebugFunction(IntPtr fp);
// [DllImport("UnityJackAudio")]
Expand All @@ -86,4 +96,4 @@ static public void GetMixedData(float[] buffer)

}

}
}

0 comments on commit 9d3a32c

Please sign in to comment.