{"action":"created","issue":{"url":"https://api.github.com/repos/andrewrk/libsoundio/issues/92","repository_url":"https://api.github.com/repos/andrewrk/libsoundio","labels_url":"https://api.github.com/repos/andrewrk/libsoundio/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/andrewrk/libsoundio/issues/92/comments","events_url":"https://api.github.com/repos/andrewrk/libsoundio/issues/92/events","html_url":"https://github.com/andrewrk/libsoundio/pull/92","id":166963509,"number":92,"title":"Remove &","user":{"login":"0joshuaolson1","id":1666682,"avatar_url":"https://avatars.githubusercontent.com/u/1666682?v=3","gravatar_id":"","url":"https://api.github.com/users/0joshuaolson1","html_url":"https://github.com/0joshuaolson1","followers_url":"https://api.github.com/users/0joshuaolson1/followers","following_url":"https://api.github.com/users/0joshuaolson1/following{/other_user}","gists_url":"https://api.github.com/users/0joshuaolson1/gists{/gist_id}","starred_url":"https://api.github.com/users/0joshuaolson1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0joshuaolson1/subscriptions","organizations_url":"https://api.github.com/users/0joshuaolson1/orgs","repos_url":"https://api.github.com/users/0joshuaolson1/repos","events_url":"https://api.github.com/users/0joshuaolson1/events{/privacy}","received_events_url":"https://api.github.com/users/0joshuaolson1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-22T03:28:13Z","updated_at":"2016-07-24T18:44:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/andrewrk/libsoundio/pulls/92","html_url":"https://github.com/andrewrk/libsoundio/pull/92","diff_url":"https://github.com/andrewrk/libsoundio/pull/92.diff","patch_url":"https://github.com/andrewrk/libsoundio/pull/92.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/andrewrk/libsoundio/issues/comments/234794319","html_url":"https://github.com/andrewrk/libsoundio/pull/92#issuecomment-234794319","issue_url":"https://api.github.com/repos/andrewrk/libsoundio/issues/92","id":234794319,"user":{"login":"Naftoreiclag","id":2151797,"avatar_url":"https://avatars.githubusercontent.com/u/2151797?v=3","gravatar_id":"","url":"https://api.github.com/users/Naftoreiclag","html_url":"https://github.com/Naftoreiclag","followers_url":"https://api.github.com/users/Naftoreiclag/followers","following_url":"https://api.github.com/users/Naftoreiclag/following{/other_user}","gists_url":"https://api.github.com/users/Naftoreiclag/gists{/gist_id}","starred_url":"https://api.github.com/users/Naftoreiclag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Naftoreiclag/subscriptions","organizations_url":"https://api.github.com/users/Naftoreiclag/orgs","repos_url":"https://api.github.com/users/Naftoreiclag/repos","events_url":"https://api.github.com/users/Naftoreiclag/events{/privacy}","received_events_url":"https://api.github.com/users/Naftoreiclag/received_events","type":"User","site_admin":false},"created_at":"2016-07-24T18:44:14Z","updated_at":"2016-07-24T18:44:14Z","body":"I'm not sure what issue this could be fixing, but print_channel_layout() accepts a pointer (produced by &). Also sample_rates[] isn't an array of pointers, so the & is needed to turn the reference returned by [i] into a pointer for the variable \"range\".\r\n\r\nmingw-w64 output:\r\n> In function 'void print_device(SoundIoDevice*, bool)':\r\n> 52:52: error: cannot convert 'SoundIoChannelLayout' to 'const SoundIoChannelLayout*' for argument '1' to 'void print_channel_layout(const SoundIoChannelLayout*)'\r\n>              print_channel_layout(device->layouts[i]);\r\n>                                                     ^\r\n> 57:56: error: cannot convert 'SoundIoChannelLayout' to 'const SoundIoChannelLayout*' for argument '1' to 'void print_channel_layout(const SoundIoChannelLayout*)'\r\n>              print_channel_layout(device->current_layout);\r\n>                                                         ^\r\n> 63:74: error: cannot convert 'SoundIoSampleRateRange' to 'SoundIoSampleRateRange*' in initialization\r\n>              struct SoundIoSampleRateRange *range = device->sample_rates[i];\r\n>                                                                           ^\r\n\r\nI don't think this should be added as-is.\r\n"}}
{"actor":{"display_login":"Naftoreiclag"}}