Update Cryville.Audio.
This commit is contained in:
@@ -74,9 +74,6 @@ namespace Cryville.Crtr {
|
|||||||
ffmpeg.RootPath = "";
|
ffmpeg.RootPath = "";
|
||||||
#else
|
#else
|
||||||
#error No FFmpeg search path.
|
#error No FFmpeg search path.
|
||||||
#endif
|
|
||||||
#if UNITY_ANDROID
|
|
||||||
Cryville.Audio.OpenSL.OutputClient.CallbackFunction = audioCallback;
|
|
||||||
#endif
|
#endif
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
@@ -147,13 +144,6 @@ namespace Cryville.Crtr {
|
|||||||
Logger.Log("main", 1, "Game", "Initialized");
|
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;
|
static bool _shutdown;
|
||||||
public static void Shutdown() {
|
public static void Shutdown() {
|
||||||
if (_shutdown) return;
|
if (_shutdown) return;
|
||||||
@@ -161,8 +151,8 @@ namespace Cryville.Crtr {
|
|||||||
|
|
||||||
Logger.Log("main", 1, "Game", "Shutting down");
|
Logger.Log("main", 1, "Game", "Shutting down");
|
||||||
try {
|
try {
|
||||||
AudioSequencer.Dispose();
|
|
||||||
AudioClient.Dispose();
|
AudioClient.Dispose();
|
||||||
|
AudioSequencer.Dispose();
|
||||||
AudioManager.Dispose();
|
AudioManager.Dispose();
|
||||||
}
|
}
|
||||||
catch (Exception ex) {
|
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