urho icon indicating copy to clipboard operation
urho copied to clipboard

UrhoSharp 1.8.93 audio output problem after first UrhoSurface.OnDestroy() on Android

Open vitoplantamura opened this issue 8 years ago • 0 comments

hi Egor,

the relevant message in the logs of a physical device is this one:

E/Urho3D: Could not initialize audio output

To recreate the problem with the "FeatureSamples" application, please follow these steps:

(1) start the app on android (2) select the "Sound Effects" demo (NOTE: at this point everything works as expected) (3) tap on the Back button (4) select AGAIN the "Sound Effects" demo (5) now you shouldn't be able to hear any music or sound effect...

My guess is that UrhoSurface.OnDestroy() is unable to properly dispose the native engine and/or all the SDL stuff before the second initialization of the engine.

The problem is particularly concerning in the case of a classic Android fullscreen game:

(1) the user presses the Back button, thus exiting the game (2) the user starts the game again (3) no sound or music can be heard

Thanks, --Vito

vitoplantamura avatar Mar 25 '18 15:03 vitoplantamura