MCPcopy Create free account
hub / github.com/defold/defold / PlatformFinalize

Function PlatformFinalize

engine/sound/src/sound_android.cpp:105–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 }
104
105 Result PlatformFinalize()
106 {
107 dmAndroid::ThreadAttacher thread;
108 JNIEnv* environment = thread.GetEnv();
109 if (environment != NULL)
110 {
111 environment->DeleteGlobalRef(g_SoundManager.m_SoundManager);
112 }
113 return thread.Detach() ? RESULT_OK : RESULT_FINI_ERROR;
114 }
115
116 bool PlatformIsMusicPlaying(bool is_device_started, bool has_window_focus)
117 {

Callers 2

FinalizeFunction · 0.70
FinalizeFunction · 0.70

Calls 2

GetEnvMethod · 0.80
DetachMethod · 0.80

Tested by

no test coverage detected