{"action":"created","comment":{"url":"https://api.github.com/repos/ghewgill/easysid/pulls/comments/48208055","id":48208055,"diff_hunk":"@@ -26,7 +41,15 @@ EXPORT void start_capture(const char *fn)\n         delete wav;\n         wav = NULL;\n     }\n-    wav = makePcmOutputWav(fn);\n+    if (pcm == NULL) {\n+        if (not initAudioOutput(DEFAULT_SAMPLING_RATE)) {","path":"easysid.cpp","position":36,"original_position":36,"commit_id":"586a277da861b7fbbc40702a38a1fba3b0b0fcbb","original_commit_id":"586a277da861b7fbbc40702a38a1fba3b0b0fcbb","user":{"login":"ghewgill","id":17221,"avatar_url":"https://avatars.githubusercontent.com/u/17221?v=3","gravatar_id":"","url":"https://api.github.com/users/ghewgill","html_url":"https://github.com/ghewgill","followers_url":"https://api.github.com/users/ghewgill/followers","following_url":"https://api.github.com/users/ghewgill/following{/other_user}","gists_url":"https://api.github.com/users/ghewgill/gists{/gist_id}","starred_url":"https://api.github.com/users/ghewgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghewgill/subscriptions","organizations_url":"https://api.github.com/users/ghewgill/orgs","repos_url":"https://api.github.com/users/ghewgill/repos","events_url":"https://api.github.com/users/ghewgill/events{/privacy}","received_events_url":"https://api.github.com/users/ghewgill/received_events","type":"User","site_admin":false},"body":"I don't think this is going to work if you later call `set_sampling_parameters` with a `sample_rate` that does not match the default.","created_at":"2015-12-22T00:08:10Z","updated_at":"2015-12-22T00:08:10Z","html_url":"https://github.com/ghewgill/easysid/pull/4#discussion_r48208055","pull_request_url":"https://api.github.com/repos/ghewgill/easysid/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/ghewgill/easysid/pulls/comments/48208055"},"html":{"href":"https://github.com/ghewgill/easysid/pull/4#discussion_r48208055"},"pull_request":{"href":"https://api.github.com/repos/ghewgill/easysid/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/ghewgill/easysid/pulls/4","id":30216248,"html_url":"https://github.com/ghewgill/easysid/pull/4","diff_url":"https://github.com/ghewgill/easysid/pull/4.diff","patch_url":"https://github.com/ghewgill/easysid/pull/4.patch","issue_url":"https://api.github.com/repos/ghewgill/easysid/issues/4","number":4,"state":"open","locked":false,"title":"Sid parameters","user":{"login":"gitlarryf","id":8064499,"avatar_url":"https://avatars.githubusercontent.com/u/8064499?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlarryf","html_url":"https://github.com/gitlarryf","followers_url":"https://api.github.com/users/gitlarryf/followers","following_url":"https://api.github.com/users/gitlarryf/following{/other_user}","gists_url":"https://api.github.com/users/gitlarryf/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlarryf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlarryf/subscriptions","organizations_url":"https://api.github.com/users/gitlarryf/orgs","repos_url":"https://api.github.com/users/gitlarryf/repos","events_url":"https://api.github.com/users/gitlarryf/events{/privacy}","received_events_url":"https://api.github.com/users/gitlarryf/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-28T02:12:12Z","updated_at":"2015-12-22T00:08:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12b512cb6c16ce392b620bed80ba8f12189d7942","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ghewgill/easysid/pulls/4/commits","review_comments_url":"https://api.github.com/repos/ghewgill/easysid/pulls/4/comments","review_comment_url":"https://api.github.com/repos/ghewgill/easysid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ghewgill/easysid/issues/4/comments","statuses_url":"https://api.github.com/repos/ghewgill/easysid/statuses/586a277da861b7fbbc40702a38a1fba3b0b0fcbb","head":{"label":"gitlarryf:sid-parameters","ref":"sid-parameters","sha":"586a277da861b7fbbc40702a38a1fba3b0b0fcbb","user":{"login":"gitlarryf","id":8064499,"avatar_url":"https://avatars.githubusercontent.com/u/8064499?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlarryf","html_url":"https://github.com/gitlarryf","followers_url":"https://api.github.com/users/gitlarryf/followers","following_url":"https://api.github.com/users/gitlarryf/following{/other_user}","gists_url":"https://api.github.com/users/gitlarryf/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlarryf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlarryf/subscriptions","organizations_url":"https://api.github.com/users/gitlarryf/orgs","repos_url":"https://api.github.com/users/gitlarryf/repos","events_url":"https://api.github.com/users/gitlarryf/events{/privacy}","received_events_url":"https://api.github.com/users/gitlarryf/received_events","type":"User","site_admin":false},"repo":{"id":29036763,"name":"easysid","full_name":"gitlarryf/easysid","owner":{"login":"gitlarryf","id":8064499,"avatar_url":"https://avatars.githubusercontent.com/u/8064499?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlarryf","html_url":"https://github.com/gitlarryf","followers_url":"https://api.github.com/users/gitlarryf/followers","following_url":"https://api.github.com/users/gitlarryf/following{/other_user}","gists_url":"https://api.github.com/users/gitlarryf/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlarryf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlarryf/subscriptions","organizations_url":"https://api.github.com/users/gitlarryf/orgs","repos_url":"https://api.github.com/users/gitlarryf/repos","events_url":"https://api.github.com/users/gitlarryf/events{/privacy}","received_events_url":"https://api.github.com/users/gitlarryf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gitlarryf/easysid","description":"","fork":true,"url":"https://api.github.com/repos/gitlarryf/easysid","forks_url":"https://api.github.com/repos/gitlarryf/easysid/forks","keys_url":"https://api.github.com/repos/gitlarryf/easysid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gitlarryf/easysid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gitlarryf/easysid/teams","hooks_url":"https://api.github.com/repos/gitlarryf/easysid/hooks","issue_events_url":"https://api.github.com/repos/gitlarryf/easysid/issues/events{/number}","events_url":"https://api.github.com/repos/gitlarryf/easysid/events","assignees_url":"https://api.github.com/repos/gitlarryf/easysid/assignees{/user}","branches_url":"https://api.github.com/repos/gitlarryf/easysid/branches{/branch}","tags_url":"https://api.github.com/repos/gitlarryf/easysid/tags","blobs_url":"https://api.github.com/repos/gitlarryf/easysid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gitlarryf/easysid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gitlarryf/easysid/git/refs{/sha}","trees_url":"https://api.github.com/repos/gitlarryf/easysid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gitlarryf/easysid/statuses/{sha}","languages_url":"https://api.github.com/repos/gitlarryf/easysid/languages","stargazers_url":"https://api.github.com/repos/gitlarryf/easysid/stargazers","contributors_url":"https://api.github.com/repos/gitlarryf/easysid/contributors","subscribers_url":"https://api.github.com/repos/gitlarryf/easysid/subscribers","subscription_url":"https://api.github.com/repos/gitlarryf/easysid/subscription","commits_url":"https://api.github.com/repos/gitlarryf/easysid/commits{/sha}","git_commits_url":"https://api.github.com/repos/gitlarryf/easysid/git/commits{/sha}","comments_url":"https://api.github.com/repos/gitlarryf/easysid/comments{/number}","issue_comment_url":"https://api.github.com/repos/gitlarryf/easysid/issues/comments{/number}","contents_url":"https://api.github.com/repos/gitlarryf/easysid/contents/{+path}","compare_url":"https://api.github.com/repos/gitlarryf/easysid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gitlarryf/easysid/merges","archive_url":"https://api.github.com/repos/gitlarryf/easysid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gitlarryf/easysid/downloads","issues_url":"https://api.github.com/repos/gitlarryf/easysid/issues{/number}","pulls_url":"https://api.github.com/repos/gitlarryf/easysid/pulls{/number}","milestones_url":"https://api.github.com/repos/gitlarryf/easysid/milestones{/number}","notifications_url":"https://api.github.com/repos/gitlarryf/easysid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gitlarryf/easysid/labels{/name}","releases_url":"https://api.github.com/repos/gitlarryf/easysid/releases{/id}","created_at":"2015-01-09T21:44:42Z","updated_at":"2015-01-09T21:44:43Z","pushed_at":"2015-12-21T23:46:21Z","git_url":"git://github.com/gitlarryf/easysid.git","ssh_url":"git@github.com:gitlarryf/easysid.git","clone_url":"https://github.com/gitlarryf/easysid.git","svn_url":"https://github.com/gitlarryf/easysid","homepage":null,"size":271,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ghewgill:master","ref":"master","sha":"9ce2a92d513a1d02eff176d4d3f7b21bda0208ff","user":{"login":"ghewgill","id":17221,"avatar_url":"https://avatars.githubusercontent.com/u/17221?v=3","gravatar_id":"","url":"https://api.github.com/users/ghewgill","html_url":"https://github.com/ghewgill","followers_url":"https://api.github.com/users/ghewgill/followers","following_url":"https://api.github.com/users/ghewgill/following{/other_user}","gists_url":"https://api.github.com/users/ghewgill/gists{/gist_id}","starred_url":"https://api.github.com/users/ghewgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghewgill/subscriptions","organizations_url":"https://api.github.com/users/ghewgill/orgs","repos_url":"https://api.github.com/users/ghewgill/repos","events_url":"https://api.github.com/users/ghewgill/events{/privacy}","received_events_url":"https://api.github.com/users/ghewgill/received_events","type":"User","site_admin":false},"repo":{"id":28504030,"name":"easysid","full_name":"ghewgill/easysid","owner":{"login":"ghewgill","id":17221,"avatar_url":"https://avatars.githubusercontent.com/u/17221?v=3","gravatar_id":"","url":"https://api.github.com/users/ghewgill","html_url":"https://github.com/ghewgill","followers_url":"https://api.github.com/users/ghewgill/followers","following_url":"https://api.github.com/users/ghewgill/following{/other_user}","gists_url":"https://api.github.com/users/ghewgill/gists{/gist_id}","starred_url":"https://api.github.com/users/ghewgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghewgill/subscriptions","organizations_url":"https://api.github.com/users/ghewgill/orgs","repos_url":"https://api.github.com/users/ghewgill/repos","events_url":"https://api.github.com/users/ghewgill/events{/privacy}","received_events_url":"https://api.github.com/users/ghewgill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ghewgill/easysid","description":"","fork":false,"url":"https://api.github.com/repos/ghewgill/easysid","forks_url":"https://api.github.com/repos/ghewgill/easysid/forks","keys_url":"https://api.github.com/repos/ghewgill/easysid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ghewgill/easysid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ghewgill/easysid/teams","hooks_url":"https://api.github.com/repos/ghewgill/easysid/hooks","issue_events_url":"https://api.github.com/repos/ghewgill/easysid/issues/events{/number}","events_url":"https://api.github.com/repos/ghewgill/easysid/events","assignees_url":"https://api.github.com/repos/ghewgill/easysid/assignees{/user}","branches_url":"https://api.github.com/repos/ghewgill/easysid/branches{/branch}","tags_url":"https://api.github.com/repos/ghewgill/easysid/tags","blobs_url":"https://api.github.com/repos/ghewgill/easysid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ghewgill/easysid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ghewgill/easysid/git/refs{/sha}","trees_url":"https://api.github.com/repos/ghewgill/easysid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ghewgill/easysid/statuses/{sha}","languages_url":"https://api.github.com/repos/ghewgill/easysid/languages","stargazers_url":"https://api.github.com/repos/ghewgill/easysid/stargazers","contributors_url":"https://api.github.com/repos/ghewgill/easysid/contributors","subscribers_url":"https://api.github.com/repos/ghewgill/easysid/subscribers","subscription_url":"https://api.github.com/repos/ghewgill/easysid/subscription","commits_url":"https://api.github.com/repos/ghewgill/easysid/commits{/sha}","git_commits_url":"https://api.github.com/repos/ghewgill/easysid/git/commits{/sha}","comments_url":"https://api.github.com/repos/ghewgill/easysid/comments{/number}","issue_comment_url":"https://api.github.com/repos/ghewgill/easysid/issues/comments{/number}","contents_url":"https://api.github.com/repos/ghewgill/easysid/contents/{+path}","compare_url":"https://api.github.com/repos/ghewgill/easysid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ghewgill/easysid/merges","archive_url":"https://api.github.com/repos/ghewgill/easysid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ghewgill/easysid/downloads","issues_url":"https://api.github.com/repos/ghewgill/easysid/issues{/number}","pulls_url":"https://api.github.com/repos/ghewgill/easysid/pulls{/number}","milestones_url":"https://api.github.com/repos/ghewgill/easysid/milestones{/number}","notifications_url":"https://api.github.com/repos/ghewgill/easysid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ghewgill/easysid/labels{/name}","releases_url":"https://api.github.com/repos/ghewgill/easysid/releases{/id}","created_at":"2014-12-26T07:47:59Z","updated_at":"2015-03-07T18:55:12Z","pushed_at":"2015-12-21T23:46:21Z","git_url":"git://github.com/ghewgill/easysid.git","ssh_url":"git@github.com:ghewgill/easysid.git","clone_url":"https://github.com/ghewgill/easysid.git","svn_url":"https://github.com/ghewgill/easysid","homepage":null,"size":273,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ghewgill/easysid/pulls/4"},"html":{"href":"https://github.com/ghewgill/easysid/pull/4"},"issue":{"href":"https://api.github.com/repos/ghewgill/easysid/issues/4"},"comments":{"href":"https://api.github.com/repos/ghewgill/easysid/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/ghewgill/easysid/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/ghewgill/easysid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ghewgill/easysid/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/ghewgill/easysid/statuses/586a277da861b7fbbc40702a38a1fba3b0b0fcbb"}}}}