{"action":"created","issue":{"url":"https://api.github.com/repos/jarikomppa/soloud/issues/76","labels_url":"https://api.github.com/repos/jarikomppa/soloud/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/jarikomppa/soloud/issues/76/comments","events_url":"https://api.github.com/repos/jarikomppa/soloud/issues/76/events","html_url":"https://github.com/jarikomppa/soloud/issues/76","id":59346253,"number":76,"title":"Possible invalidation of voice handle before sound is done playing","user":{"login":"lilmike","id":1117427,"avatar_url":"https://avatars.githubusercontent.com/u/1117427?v=3","gravatar_id":"","url":"https://api.github.com/users/lilmike","html_url":"https://github.com/lilmike","followers_url":"https://api.github.com/users/lilmike/followers","following_url":"https://api.github.com/users/lilmike/following{/other_user}","gists_url":"https://api.github.com/users/lilmike/gists{/gist_id}","starred_url":"https://api.github.com/users/lilmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilmike/subscriptions","organizations_url":"https://api.github.com/users/lilmike/orgs","repos_url":"https://api.github.com/users/lilmike/repos","events_url":"https://api.github.com/users/lilmike/events{/privacy}","received_events_url":"https://api.github.com/users/lilmike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-28T15:54:48Z","updated_at":"2015-02-28T19:26:56Z","closed_at":null,"body":"Hi,\r\nOn certain computers, native win32 and native arch linux vm, but not on some, for example another arch linux computer, soloud will cut off the last part of a sound at the end of the program, for example about .5 seconds. I check the isValidVoiceHandle function on the handle, and sleep for 10 milliseconds in a while loop until it returns 0. This makes me think that the isValidVoiceHandle function is returning 0 earlier than it should, causing my program to quit the function early, causing the Wav class to become invalid as well.\r\nI don't know if this is the case, but for some reason the program exits before the sound is done playing.\r\n-Michael.\r\n"},"comment":{"url":"https://api.github.com/repos/jarikomppa/soloud/issues/comments/76541420","html_url":"https://github.com/jarikomppa/soloud/issues/76#issuecomment-76541420","issue_url":"https://api.github.com/repos/jarikomppa/soloud/issues/76","id":76541420,"user":{"login":"lilmike","id":1117427,"avatar_url":"https://avatars.githubusercontent.com/u/1117427?v=3","gravatar_id":"","url":"https://api.github.com/users/lilmike","html_url":"https://github.com/lilmike","followers_url":"https://api.github.com/users/lilmike/followers","following_url":"https://api.github.com/users/lilmike/following{/other_user}","gists_url":"https://api.github.com/users/lilmike/gists{/gist_id}","starred_url":"https://api.github.com/users/lilmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilmike/subscriptions","organizations_url":"https://api.github.com/users/lilmike/orgs","repos_url":"https://api.github.com/users/lilmike/repos","events_url":"https://api.github.com/users/lilmike/events{/privacy}","received_events_url":"https://api.github.com/users/lilmike/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T19:26:56Z","updated_at":"2015-02-28T19:26:56Z","body":"Ah yes, that makes sense. I noticed that using oss on my vm the program cuts off quite a bit. On windows using winmm, it cuts off a little, and using sdl2, it cuts off almost nothing.\r\nIf you can figure out a way to check if audio has ended that would be nice though :-).\r\n-Michael.\r\n"}}