{"action":"created","issue":{"url":"https://api.github.com/repos/cruvar/gui_metronome/issues/2","repository_url":"https://api.github.com/repos/cruvar/gui_metronome","labels_url":"https://api.github.com/repos/cruvar/gui_metronome/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/cruvar/gui_metronome/issues/2/comments","events_url":"https://api.github.com/repos/cruvar/gui_metronome/issues/2/events","html_url":"https://github.com/cruvar/gui_metronome/issues/2","id":134315133,"number":2,"title":"Упростить Metronome::paCallback","user":{"login":"mofr","id":1718475,"avatar_url":"https://avatars.githubusercontent.com/u/1718475?v=3","gravatar_id":"","url":"https://api.github.com/users/mofr","html_url":"https://github.com/mofr","followers_url":"https://api.github.com/users/mofr/followers","following_url":"https://api.github.com/users/mofr/following{/other_user}","gists_url":"https://api.github.com/users/mofr/gists{/gist_id}","starred_url":"https://api.github.com/users/mofr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mofr/subscriptions","organizations_url":"https://api.github.com/users/mofr/orgs","repos_url":"https://api.github.com/users/mofr/repos","events_url":"https://api.github.com/users/mofr/events{/privacy}","received_events_url":"https://api.github.com/users/mofr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-17T15:41:05Z","updated_at":"2016-02-17T15:48:30Z","closed_at":null,"body":"Создать приватный метод в классе `Metronome`, который будет выполнять всю работу текущего `paCallback`. Нужно для упрощения кода, чтобы все время не писать `metronome->`"},"comment":{"url":"https://api.github.com/repos/cruvar/gui_metronome/issues/comments/185265523","html_url":"https://github.com/cruvar/gui_metronome/issues/2#issuecomment-185265523","issue_url":"https://api.github.com/repos/cruvar/gui_metronome/issues/2","id":185265523,"user":{"login":"mofr","id":1718475,"avatar_url":"https://avatars.githubusercontent.com/u/1718475?v=3","gravatar_id":"","url":"https://api.github.com/users/mofr","html_url":"https://github.com/mofr","followers_url":"https://api.github.com/users/mofr/followers","following_url":"https://api.github.com/users/mofr/following{/other_user}","gists_url":"https://api.github.com/users/mofr/gists{/gist_id}","starred_url":"https://api.github.com/users/mofr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mofr/subscriptions","organizations_url":"https://api.github.com/users/mofr/orgs","repos_url":"https://api.github.com/users/mofr/repos","events_url":"https://api.github.com/users/mofr/events{/privacy}","received_events_url":"https://api.github.com/users/mofr/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T15:48:30Z","updated_at":"2016-02-17T15:48:30Z","body":"Нет, указатели на методы не нужны, в `paCallback` уже передается указатель на метроном, достаточно там вызывать нечто вроде `metronome->fillBuffer(...)`. `paCallback` нужна только как прокси-функция между мирами C и C++.\r\nЭто не фундаментальное изменение, но мне кажется что код станет почище."}}