{"action":"created","issue":{"url":"https://api.github.com/repos/MonoGame/MonoGame/issues/6382","repository_url":"https://api.github.com/repos/MonoGame/MonoGame","labels_url":"https://api.github.com/repos/MonoGame/MonoGame/issues/6382/labels{/name}","comments_url":"https://api.github.com/repos/MonoGame/MonoGame/issues/6382/comments","events_url":"https://api.github.com/repos/MonoGame/MonoGame/issues/6382/events","html_url":"https://github.com/MonoGame/MonoGame/issues/6382","id":344762397,"node_id":"MDU6SXNzdWUzNDQ3NjIzOTc=","number":6382,"title":"Android projects cannot initialize AudioDevice","user":{"login":"MattiKloepper","id":15989529,"node_id":"MDQ6VXNlcjE1OTg5NTI5","avatar_url":"https://avatars1.githubusercontent.com/u/15989529?v=4","gravatar_id":"","url":"https://api.github.com/users/MattiKloepper","html_url":"https://github.com/MattiKloepper","followers_url":"https://api.github.com/users/MattiKloepper/followers","following_url":"https://api.github.com/users/MattiKloepper/following{/other_user}","gists_url":"https://api.github.com/users/MattiKloepper/gists{/gist_id}","starred_url":"https://api.github.com/users/MattiKloepper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattiKloepper/subscriptions","organizations_url":"https://api.github.com/users/MattiKloepper/orgs","repos_url":"https://api.github.com/users/MattiKloepper/repos","events_url":"https://api.github.com/users/MattiKloepper/events{/privacy}","received_events_url":"https://api.github.com/users/MattiKloepper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-26T09:20:05Z","updated_at":"2018-07-26T13:06:44Z","closed_at":null,"author_association":"NONE","body":"<!-- Write your issue below -->\r\n\r\nI'm experiencing a problem with running android projects in Monogame 3.7.0.1641. To narrow things down I have created a completely new Monogame Android through the current Visual Studio 2017 template.\r\n\r\nIn the main activity the template creates a new Game object with \"var g = new Game1();\". Running this code on either an Android emulator (Oreo 8.0 and 8.1 devices created with the Android Device Manager) or an my Samsung Galaxy Tab throws an Exception in the Game-Class constructor.\r\n\r\nException: Microsoft.Xna.Framework.Audio.NoAudioHardwareException\r\nInner Exception: System.NullReferenceException\r\nMessage: \"OpenAL device could not be initialized.\"\r\nSource: MonoGame.Framework\r\nStacktrace:\r\n  at Microsoft.Xna.Framework.Audio.OpenALSoundController.OpenSoundController () [0x00031] in <b488439325ec489f8bc723f2a162f479>:0 \r\n  at Microsoft.Xna.Framework.Audio.OpenALSoundController..ctor () [0x00011] in <b488439325ec489f8bc723f2a162f479>:0 \r\n  at Microsoft.Xna.Framework.Audio.OpenALSoundController.get_GetInstance () [0x00007] in <b488439325ec489f8bc723f2a162f479>:0 \r\n  at Microsoft.Xna.Framework.AndroidGamePlatform..ctor (Microsoft.Xna.Framework.Game game) [0x00060] in <b488439325ec489f8bc723f2a162f479>:0 \r\n  at Microsoft.Xna.Framework.GamePlatform.PlatformCreate (Microsoft.Xna.Framework.Game game) [0x00000] in <b488439325ec489f8bc723f2a162f479>:0 \r\n  at Microsoft.Xna.Framework.Game..ctor () [0x001fb] in <b488439325ec489f8bc723f2a162f479>:0 \r\n  at Test.Droid.Game1..ctor () [0x00000] in [...]\\Test.Droid\\Game1.cs:16 \r\n  at Test.Droid.Activity1.OnCreate (Android.OS.Bundle bundle) [0x0000a] in [...]\\Test.Droid\\Activity1.cs:24\r\n  \r\nThe android emulators as well as the physical Samsung tablet produces sounds without problems in other apps or the OS.\r\n\r\nIs there anything I can do to repair this problem or at least to deactivate the AudioHardwareInitialization?\r\n\r\nKind regards,\r\nMatti\r\n\r\n<!-- System stats -->\r\n\r\n#### What version of MonoGame does the bug occur on:\r\n- MonoGame 3.7.0.1641\r\n\r\n#### What operating system are you using:\r\n- Windows\r\n\r\n#### What MonoGame platform are you using:\r\n<!-- e.g. DesktopGL, WindowsDX, WindowsUWP, Android -->\r\n- Android\r\n"},"comment":{"url":"https://api.github.com/repos/MonoGame/MonoGame/issues/comments/408090804","html_url":"https://github.com/MonoGame/MonoGame/issues/6382#issuecomment-408090804","issue_url":"https://api.github.com/repos/MonoGame/MonoGame/issues/6382","id":408090804,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODA5MDgwNA==","user":{"login":"MattiKloepper","id":15989529,"node_id":"MDQ6VXNlcjE1OTg5NTI5","avatar_url":"https://avatars1.githubusercontent.com/u/15989529?v=4","gravatar_id":"","url":"https://api.github.com/users/MattiKloepper","html_url":"https://github.com/MattiKloepper","followers_url":"https://api.github.com/users/MattiKloepper/followers","following_url":"https://api.github.com/users/MattiKloepper/following{/other_user}","gists_url":"https://api.github.com/users/MattiKloepper/gists{/gist_id}","starred_url":"https://api.github.com/users/MattiKloepper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattiKloepper/subscriptions","organizations_url":"https://api.github.com/users/MattiKloepper/orgs","repos_url":"https://api.github.com/users/MattiKloepper/repos","events_url":"https://api.github.com/users/MattiKloepper/events{/privacy}","received_events_url":"https://api.github.com/users/MattiKloepper/received_events","type":"User","site_admin":false},"created_at":"2018-07-26T13:06:44Z","updated_at":"2018-07-26T13:06:44Z","author_association":"NONE","body":"Sorry for the hassle. I have been quite curious About the cause of this Problem and did some completly clean reinstallations.\r\nNew Solution in Visualstudio 2017 with just a single MonoGame Android Project created from the template an no changes.\r\nJust using the installed libraries, no nuget packages.\r\n\r\nMonaGame version changes have been performed via uninstallation, reboot, cleaning the solution in Visualstudio and rebuilding.\r\n\r\nThis works for up to MonoGame 3.7.1608 but produces the originally described Problem from 3.7.1624 onward. Will try the intermediate versions now to pinpoint the Problem to a specific build."}}
{"actor":{"display_login":"MattiKloepper"}}