{"action":"created","issue":{"url":"https://api.github.com/repos/WohlSoft/SDL-Mixer-X/issues/19","repository_url":"https://api.github.com/repos/WohlSoft/SDL-Mixer-X","labels_url":"https://api.github.com/repos/WohlSoft/SDL-Mixer-X/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/WohlSoft/SDL-Mixer-X/issues/19/comments","events_url":"https://api.github.com/repos/WohlSoft/SDL-Mixer-X/issues/19/events","html_url":"https://github.com/WohlSoft/SDL-Mixer-X/issues/19","id":348168480,"node_id":"MDU6SXNzdWUzNDgxNjg0ODA=","number":19,"title":"(Feature request) ability to specify a playback duration","user":{"login":"krcroft","id":1557255,"node_id":"MDQ6VXNlcjE1NTcyNTU=","avatar_url":"https://avatars3.githubusercontent.com/u/1557255?v=4","gravatar_id":"","url":"https://api.github.com/users/krcroft","html_url":"https://github.com/krcroft","followers_url":"https://api.github.com/users/krcroft/followers","following_url":"https://api.github.com/users/krcroft/following{/other_user}","gists_url":"https://api.github.com/users/krcroft/gists{/gist_id}","starred_url":"https://api.github.com/users/krcroft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krcroft/subscriptions","organizations_url":"https://api.github.com/users/krcroft/orgs","repos_url":"https://api.github.com/users/krcroft/repos","events_url":"https://api.github.com/users/krcroft/events{/privacy}","received_events_url":"https://api.github.com/users/krcroft/received_events","type":"User","site_admin":false},"labels":[{"id":658257970,"node_id":"MDU6TGFiZWw2NTgyNTc5NzA=","url":"https://api.github.com/repos/WohlSoft/SDL-Mixer-X/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"Wohlstand","id":6751442,"node_id":"MDQ6VXNlcjY3NTE0NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/6751442?v=4","gravatar_id":"","url":"https://api.github.com/users/Wohlstand","html_url":"https://github.com/Wohlstand","followers_url":"https://api.github.com/users/Wohlstand/followers","following_url":"https://api.github.com/users/Wohlstand/following{/other_user}","gists_url":"https://api.github.com/users/Wohlstand/gists{/gist_id}","starred_url":"https://api.github.com/users/Wohlstand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wohlstand/subscriptions","organizations_url":"https://api.github.com/users/Wohlstand/orgs","repos_url":"https://api.github.com/users/Wohlstand/repos","events_url":"https://api.github.com/users/Wohlstand/events{/privacy}","received_events_url":"https://api.github.com/users/Wohlstand/received_events","type":"User","site_admin":false},"assignees":[{"login":"Wohlstand","id":6751442,"node_id":"MDQ6VXNlcjY3NTE0NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/6751442?v=4","gravatar_id":"","url":"https://api.github.com/users/Wohlstand","html_url":"https://github.com/Wohlstand","followers_url":"https://api.github.com/users/Wohlstand/followers","following_url":"https://api.github.com/users/Wohlstand/following{/other_user}","gists_url":"https://api.github.com/users/Wohlstand/gists{/gist_id}","starred_url":"https://api.github.com/users/Wohlstand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wohlstand/subscriptions","organizations_url":"https://api.github.com/users/Wohlstand/orgs","repos_url":"https://api.github.com/users/Wohlstand/repos","events_url":"https://api.github.com/users/Wohlstand/events{/privacy}","received_events_url":"https://api.github.com/users/Wohlstand/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-08-07T05:04:42Z","updated_at":"2018-08-07T07:58:10Z","closed_at":null,"author_association":"NONE","body":"First up - I'm enjoying the per-stream-specific music improvements. It's much easier (and clearer) to manage state now that it's performed explicitly per stream. Thank you!\r\n\r\nThis feature is similar to loops, but uses a time duration instead. \r\n\r\nBackground on this feature request: in this Dosbox migration to Mixer X, games play audio at a given  sector (seek offset) for a given number of sectors (duration).   That duration might only be seconds while others it can be tens of minutes. \r\n\r\nSo this feature would allow specifying a playback duration after which the stream would automatically pause itself. \r\n\r\n- Playback duration would take precedence when looping exceeds the duration.  For example, a 22-second stream is set to loop infinite (-1) times and the playback duration is set to 5 minutes. After 5 minutes, the looping track is paused.\r\n\r\n- If someone externally pauses or halts the stream before the duration is reached, then the playback duration timer is cancelled and no further action taken: the stream simply remains in its paused or halted state. \r\n\r\n- If the specified playback duration accidentally exceeds the actual playback length (music total length *  loops), then the existing behavior remains and the track naturally stops playing after the number of specified loops is met.\r\n\r\nLet me know what you think!\r\n\r\nregards,\r\n Kevin"},"comment":{"url":"https://api.github.com/repos/WohlSoft/SDL-Mixer-X/issues/comments/410969062","html_url":"https://github.com/WohlSoft/SDL-Mixer-X/issues/19#issuecomment-410969062","issue_url":"https://api.github.com/repos/WohlSoft/SDL-Mixer-X/issues/19","id":410969062,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDk2OTA2Mg==","user":{"login":"Wohlstand","id":6751442,"node_id":"MDQ6VXNlcjY3NTE0NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/6751442?v=4","gravatar_id":"","url":"https://api.github.com/users/Wohlstand","html_url":"https://github.com/Wohlstand","followers_url":"https://api.github.com/users/Wohlstand/followers","following_url":"https://api.github.com/users/Wohlstand/following{/other_user}","gists_url":"https://api.github.com/users/Wohlstand/gists{/gist_id}","starred_url":"https://api.github.com/users/Wohlstand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wohlstand/subscriptions","organizations_url":"https://api.github.com/users/Wohlstand/orgs","repos_url":"https://api.github.com/users/Wohlstand/repos","events_url":"https://api.github.com/users/Wohlstand/events{/privacy}","received_events_url":"https://api.github.com/users/Wohlstand/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T07:58:10Z","updated_at":"2018-08-07T07:58:10Z","author_association":"MEMBER","body":"So, you probably need the Timed play music call, right? The Chunks API had timed functions, but music lacks that, so, yeah, I'll try add that at evening."}}
{"actor":{"display_login":"Wohlstand"}}