{"action":"created","issue":{"url":"https://api.github.com/repos/andrewrk/libsoundio/issues/12","labels_url":"https://api.github.com/repos/andrewrk/libsoundio/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/andrewrk/libsoundio/issues/12/comments","events_url":"https://api.github.com/repos/andrewrk/libsoundio/issues/12/events","html_url":"https://github.com/andrewrk/libsoundio/issues/12","id":104819724,"number":12,"title":"sio_record creates overflows","user":{"login":"7890","id":4542071,"avatar_url":"https://avatars.githubusercontent.com/u/4542071?v=3","gravatar_id":"","url":"https://api.github.com/users/7890","html_url":"https://github.com/7890","followers_url":"https://api.github.com/users/7890/followers","following_url":"https://api.github.com/users/7890/following{/other_user}","gists_url":"https://api.github.com/users/7890/gists{/gist_id}","starred_url":"https://api.github.com/users/7890/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7890/subscriptions","organizations_url":"https://api.github.com/users/7890/orgs","repos_url":"https://api.github.com/users/7890/repos","events_url":"https://api.github.com/users/7890/events{/privacy}","received_events_url":"https://api.github.com/users/7890/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/andrewrk/libsoundio/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/andrewrk/libsoundio/labels/JACK","name":"JACK","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/andrewrk/libsoundio/milestones/2","html_url":"https://github.com/andrewrk/libsoundio/milestones/1.0.1","labels_url":"https://api.github.com/repos/andrewrk/libsoundio/milestones/2/labels","id":1289119,"number":2,"title":"1.0.1","description":"","creator":{"login":"andrewrk","id":106511,"avatar_url":"https://avatars.githubusercontent.com/u/106511?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewrk","html_url":"https://github.com/andrewrk","followers_url":"https://api.github.com/users/andrewrk/followers","following_url":"https://api.github.com/users/andrewrk/following{/other_user}","gists_url":"https://api.github.com/users/andrewrk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewrk/subscriptions","organizations_url":"https://api.github.com/users/andrewrk/orgs","repos_url":"https://api.github.com/users/andrewrk/repos","events_url":"https://api.github.com/users/andrewrk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewrk/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":5,"state":"open","created_at":"2015-09-03T20:38:57Z","updated_at":"2015-09-05T08:25:48Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-09-04T02:44:29Z","updated_at":"2015-09-05T12:14:24Z","closed_at":null,"body":"testing \r\n```\r\n./sio_record --backend jack a.wav\r\n```\r\nwith JACK (dummy backend) running at different period sizes creates storms of overflows (grouped from a few to many, depending on period size), in intervals.\r\ni.e. 10 overflows, silent, 10 overflows, etc.\r\nJACK tells\r\n```\r\nJackAudioDriver::ProcessGraphAsyncMaster: Process error\r\nJackEngine::XRun: client = SoundIoInStream was not finished, state = Triggered\r\n```\r\nI couldn't find parts in the code that would testwise create these xruns so i suppose they aren't intentional.\r\n\r\na related note, running \r\n```\r\n./sio_sine --backend jack\r\n```\r\nworks without any xruns at very low period sizes.\r\n"},"comment":{"url":"https://api.github.com/repos/andrewrk/libsoundio/issues/comments/137948759","html_url":"https://github.com/andrewrk/libsoundio/issues/12#issuecomment-137948759","issue_url":"https://api.github.com/repos/andrewrk/libsoundio/issues/12","id":137948759,"user":{"login":"7890","id":4542071,"avatar_url":"https://avatars.githubusercontent.com/u/4542071?v=3","gravatar_id":"","url":"https://api.github.com/users/7890","html_url":"https://github.com/7890","followers_url":"https://api.github.com/users/7890/followers","following_url":"https://api.github.com/users/7890/following{/other_user}","gists_url":"https://api.github.com/users/7890/gists{/gist_id}","starred_url":"https://api.github.com/users/7890/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7890/subscriptions","organizations_url":"https://api.github.com/users/7890/orgs","repos_url":"https://api.github.com/users/7890/repos","events_url":"https://api.github.com/users/7890/events{/privacy}","received_events_url":"https://api.github.com/users/7890/received_events","type":"User","site_admin":false},"created_at":"2015-09-05T12:14:24Z","updated_at":"2015-09-05T12:14:24Z","body":"@andrewrk indeed, that's much better.\r\nThe last remaining bit would be to handle ctrl+c nicely to shutdown everyting (again, not at the core of libsoundio but important for the example). That's so far the only case i can see xruns (looks good while recording at low FPP)!"}}