{"action":"created","issue":{"url":"https://api.github.com/repos/freesig/cpal/issues/13","repository_url":"https://api.github.com/repos/freesig/cpal","labels_url":"https://api.github.com/repos/freesig/cpal/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/freesig/cpal/issues/13/comments","events_url":"https://api.github.com/repos/freesig/cpal/issues/13/events","html_url":"https://github.com/freesig/cpal/issues/13","id":369872192,"node_id":"MDU6SXNzdWUzNjk4NzIxOTI=","number":13,"title":"Simultaneous Input and Output Stream","user":{"login":"freesig","id":7286454,"node_id":"MDQ6VXNlcjcyODY0NTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/7286454?v=4","gravatar_id":"","url":"https://api.github.com/users/freesig","html_url":"https://github.com/freesig","followers_url":"https://api.github.com/users/freesig/followers","following_url":"https://api.github.com/users/freesig/following{/other_user}","gists_url":"https://api.github.com/users/freesig/gists{/gist_id}","starred_url":"https://api.github.com/users/freesig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freesig/subscriptions","organizations_url":"https://api.github.com/users/freesig/orgs","repos_url":"https://api.github.com/users/freesig/repos","events_url":"https://api.github.com/users/freesig/events{/privacy}","received_events_url":"https://api.github.com/users/freesig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-14T06:21:28Z","updated_at":"2018-10-15T07:14:50Z","closed_at":null,"author_association":"OWNER","body":"So I just tried making an \"echo\" example in Nannou with ASIO.\r\nIt just records the input buffer and puts it into the output.\r\nHowever only the first stream will start. Which ever one you call build on first.\r\nI'll start investigating why this is.\r\n\r\nSo it looks like the first call to AsioDriver::new() creates the drivers.\r\nIt is stored inside the AsioStream.\r\n```rust\r\npub struct AsioStream {\r\n    driver: ai::AsioDrivers,\r\n   ...\r\n}\r\n```\r\nSo we just need to share this between the different active streams. Maybe like\r\n```rust\r\ndriver: Arc<Mutex<Option<ai::AsioDrivers>>>,\r\n```"},"comment":{"url":"https://api.github.com/repos/freesig/cpal/issues/comments/429733425","html_url":"https://github.com/freesig/cpal/issues/13#issuecomment-429733425","issue_url":"https://api.github.com/repos/freesig/cpal/issues/13","id":429733425,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTczMzQyNQ==","user":{"login":"freesig","id":7286454,"node_id":"MDQ6VXNlcjcyODY0NTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/7286454?v=4","gravatar_id":"","url":"https://api.github.com/users/freesig","html_url":"https://github.com/freesig","followers_url":"https://api.github.com/users/freesig/followers","following_url":"https://api.github.com/users/freesig/following{/other_user}","gists_url":"https://api.github.com/users/freesig/gists{/gist_id}","starred_url":"https://api.github.com/users/freesig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freesig/subscriptions","organizations_url":"https://api.github.com/users/freesig/orgs","repos_url":"https://api.github.com/users/freesig/repos","events_url":"https://api.github.com/users/freesig/events{/privacy}","received_events_url":"https://api.github.com/users/freesig/received_events","type":"User","site_admin":false},"created_at":"2018-10-15T07:14:50Z","updated_at":"2018-10-15T07:14:50Z","author_association":"OWNER","body":"Actually it's coming back to me now why I didn't do this in the first place.\r\nAll the methods like build_output_stream etc. take &self, &Device, &Format\r\nSo I can't actually load a driver into any of them because it needs to be mut for that.\r\nI could use a RefCell though."}}
{"actor":{"display_login":"freesig"}}