Update Cryville.Audio.
This commit is contained in:
@@ -74,9 +74,6 @@ namespace Cryville.Crtr {
|
||||
ffmpeg.RootPath = "";
|
||||
#else
|
||||
#error No FFmpeg search path.
|
||||
#endif
|
||||
#if UNITY_ANDROID
|
||||
Cryville.Audio.OpenSL.OutputClient.CallbackFunction = audioCallback;
|
||||
#endif
|
||||
while (true) {
|
||||
try {
|
||||
@@ -147,13 +144,6 @@ namespace Cryville.Crtr {
|
||||
Logger.Log("main", 1, "Game", "Initialized");
|
||||
}
|
||||
|
||||
#if UNITY_ANDROID
|
||||
[MonoPInvokeCallback(typeof(OpenSL.Native.slBufferQueueCallback))]
|
||||
static void audioCallback(IntPtr caller, IntPtr context) {
|
||||
Cryville.Audio.OpenSL.OutputClient.Callback(caller, context);
|
||||
}
|
||||
#endif
|
||||
|
||||
static bool _shutdown;
|
||||
public static void Shutdown() {
|
||||
if (_shutdown) return;
|
||||
@@ -161,8 +151,8 @@ namespace Cryville.Crtr {
|
||||
|
||||
Logger.Log("main", 1, "Game", "Shutting down");
|
||||
try {
|
||||
AudioSequencer.Dispose();
|
||||
AudioClient.Dispose();
|
||||
AudioSequencer.Dispose();
|
||||
AudioManager.Dispose();
|
||||
}
|
||||
catch (Exception ex) {
|
||||
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Reference in New Issue
Block a user