{"action":"created","issue":{"url":"https://api.github.com/repos/mono/MonoGame/issues/4146","labels_url":"https://api.github.com/repos/mono/MonoGame/issues/4146/labels{/name}","comments_url":"https://api.github.com/repos/mono/MonoGame/issues/4146/comments","events_url":"https://api.github.com/repos/mono/MonoGame/issues/4146/events","html_url":"https://github.com/mono/MonoGame/issues/4146","id":107494603,"number":4146,"title":"Couple issues with XAudio2 (corruption, freeze)","user":{"login":"mrhelmut","id":3427451,"avatar_url":"https://avatars.githubusercontent.com/u/3427451?v=3","gravatar_id":"","url":"https://api.github.com/users/mrhelmut","html_url":"https://github.com/mrhelmut","followers_url":"https://api.github.com/users/mrhelmut/followers","following_url":"https://api.github.com/users/mrhelmut/following{/other_user}","gists_url":"https://api.github.com/users/mrhelmut/gists{/gist_id}","starred_url":"https://api.github.com/users/mrhelmut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrhelmut/subscriptions","organizations_url":"https://api.github.com/users/mrhelmut/orgs","repos_url":"https://api.github.com/users/mrhelmut/repos","events_url":"https://api.github.com/users/mrhelmut/events{/privacy}","received_events_url":"https://api.github.com/users/mrhelmut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-09-21T11:47:59Z","updated_at":"2015-09-23T14:43:15Z","closed_at":null,"body":"Hey there,\r\n\r\nWe are getting a few reports related to sfx which may be dependent to a few sound chip manufacturers.\r\nHere are the issues, which may be unrelated, but we highly suspect that they are:\r\n\r\n1. **Sound corruption**: after playing for an extended time (~1 hour), ```SoundEffect``` / ```SoundEffectInstance``` get corrupted. All sounds start to crackle a lot. ```MediaPlayer``` / ```Song``` are not affected (which seems normal since ```MediaPlayer``` uses MediaFoundation and not XAudio2).\r\n2. **Freezes / stalls**: when sounds start to crackle, it is almost certain that playing a non pooled ```SoundEffectInstance``` (i.e. through ```SoundEffect.CreateInstance()```) will totally stall the game for several seconds. ```SoundEffect.Play()``` (i.e. pooled instances) doesn't stall the game.\r\n\r\nI'm totally puzzled about these issues and we haven't been able to reproduce them internally which makes me think that they are related to specific sound chips and possibly driver issues.\r\n\r\nIt may also be only related to looped ```SoundEffectInstance```, because they tend to make the game stall more often/quickly.\r\n\r\nI also don't know why only non-pooled instances are making the game to stall. I would suspect an hardware instance limit, but since the pool doesn't have a limit on Windows platforms, the problem would have been exposed way before any non-pooled instance is played.\r\n\r\nI haven't found the time to test that against OpenAL."},"comment":{"url":"https://api.github.com/repos/mono/MonoGame/issues/comments/142623300","html_url":"https://github.com/mono/MonoGame/issues/4146#issuecomment-142623300","issue_url":"https://api.github.com/repos/mono/MonoGame/issues/4146","id":142623300,"user":{"login":"mrhelmut","id":3427451,"avatar_url":"https://avatars.githubusercontent.com/u/3427451?v=3","gravatar_id":"","url":"https://api.github.com/users/mrhelmut","html_url":"https://github.com/mrhelmut","followers_url":"https://api.github.com/users/mrhelmut/followers","following_url":"https://api.github.com/users/mrhelmut/following{/other_user}","gists_url":"https://api.github.com/users/mrhelmut/gists{/gist_id}","starred_url":"https://api.github.com/users/mrhelmut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrhelmut/subscriptions","organizations_url":"https://api.github.com/users/mrhelmut/orgs","repos_url":"https://api.github.com/users/mrhelmut/repos","events_url":"https://api.github.com/users/mrhelmut/events{/privacy}","received_events_url":"https://api.github.com/users/mrhelmut/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T14:43:15Z","updated_at":"2015-09-23T14:43:15Z","body":"Can't reproduce the issue with a minimal test playing lots of sounds of all types (being pooled or not).  :-/\r\nI let it run for a couple hours with no luck.\r\n"}}