{"action":"created","issue":{"url":"https://api.github.com/repos/FireZenk/AudioWaves/issues/9","repository_url":"https://api.github.com/repos/FireZenk/AudioWaves","labels_url":"https://api.github.com/repos/FireZenk/AudioWaves/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/FireZenk/AudioWaves/issues/9/comments","events_url":"https://api.github.com/repos/FireZenk/AudioWaves/issues/9/events","html_url":"https://github.com/FireZenk/AudioWaves/issues/9","id":187576293,"number":9,"title":"How to use your library when recording audio using mic?","user":{"login":"Gaket","id":4466100,"avatar_url":"https://avatars.githubusercontent.com/u/4466100?v=3","gravatar_id":"","url":"https://api.github.com/users/Gaket","html_url":"https://github.com/Gaket","followers_url":"https://api.github.com/users/Gaket/followers","following_url":"https://api.github.com/users/Gaket/following{/other_user}","gists_url":"https://api.github.com/users/Gaket/gists{/gist_id}","starred_url":"https://api.github.com/users/Gaket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gaket/subscriptions","organizations_url":"https://api.github.com/users/Gaket/orgs","repos_url":"https://api.github.com/users/Gaket/repos","events_url":"https://api.github.com/users/Gaket/events{/privacy}","received_events_url":"https://api.github.com/users/Gaket/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-06T17:41:12Z","updated_at":"2016-12-02T10:27:25Z","closed_at":null,"body":"Hello!\r\n\r\nThank you for sharing your work! \r\n\r\nI am struggling to make it work in parallel with audio recording. I get MediaRecorder IllegalState exception again and again.\r\n\r\nI am using your visualiser this way:\r\n\r\n```\r\n private void startRecording() {\r\n        mRecorder = new MediaRecorder();\r\n        mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);\r\n        mRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);\r\n        mRecorder.setOutputFile(mFileName);\r\n        mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_WB);\r\n\r\n        try {\r\n            mRecorder.prepare();\r\n        } catch (IOException e) {\r\n            Timber.e(\"prepare() failed\");\r\n        }\r\n       mRecorder.start();\r\n       mVisualizer.startListening();\r\n    }\r\n\r\n    private void stopRecording() {\r\n        mVisualizer.stopListening();\r\n        mRecorder.stop();\r\n        mRecorder.release();\r\n        mRecorder = null;\r\n    }\r\n```\r\n\r\nWhat do I do wrong?"},"comment":{"url":"https://api.github.com/repos/FireZenk/AudioWaves/issues/comments/264422700","html_url":"https://github.com/FireZenk/AudioWaves/issues/9#issuecomment-264422700","issue_url":"https://api.github.com/repos/FireZenk/AudioWaves/issues/9","id":264422700,"user":{"login":"Gaket","id":4466100,"avatar_url":"https://avatars.githubusercontent.com/u/4466100?v=3","gravatar_id":"","url":"https://api.github.com/users/Gaket","html_url":"https://github.com/Gaket","followers_url":"https://api.github.com/users/Gaket/followers","following_url":"https://api.github.com/users/Gaket/following{/other_user}","gists_url":"https://api.github.com/users/Gaket/gists{/gist_id}","starred_url":"https://api.github.com/users/Gaket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gaket/subscriptions","organizations_url":"https://api.github.com/users/Gaket/orgs","repos_url":"https://api.github.com/users/Gaket/repos","events_url":"https://api.github.com/users/Gaket/events{/privacy}","received_events_url":"https://api.github.com/users/Gaket/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T10:27:25Z","updated_at":"2016-12-02T10:27:25Z","body":"@liuzhen2008, unfortunately, not. Now I am using just static image. Tell me please if you solve the problem."}}
{"actor":{"display_login":"Gaket"}}