{"action":"created","issue":{"url":"https://api.github.com/repos/Arkq/bluez-alsa/issues/132","repository_url":"https://api.github.com/repos/Arkq/bluez-alsa","labels_url":"https://api.github.com/repos/Arkq/bluez-alsa/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/Arkq/bluez-alsa/issues/132/comments","events_url":"https://api.github.com/repos/Arkq/bluez-alsa/issues/132/events","html_url":"https://github.com/Arkq/bluez-alsa/issues/132","id":343790948,"node_id":"MDU6SXNzdWUzNDM3OTA5NDg=","number":132,"title":"Using AAC Codec after b907f5a commit results in fragmented audio reproduction","user":{"login":"badbat75","id":10957498,"node_id":"MDQ6VXNlcjEwOTU3NDk4","avatar_url":"https://avatars1.githubusercontent.com/u/10957498?v=4","gravatar_id":"","url":"https://api.github.com/users/badbat75","html_url":"https://github.com/badbat75","followers_url":"https://api.github.com/users/badbat75/followers","following_url":"https://api.github.com/users/badbat75/following{/other_user}","gists_url":"https://api.github.com/users/badbat75/gists{/gist_id}","starred_url":"https://api.github.com/users/badbat75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badbat75/subscriptions","organizations_url":"https://api.github.com/users/badbat75/orgs","repos_url":"https://api.github.com/users/badbat75/repos","events_url":"https://api.github.com/users/badbat75/events{/privacy}","received_events_url":"https://api.github.com/users/badbat75/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-07-23T20:51:33Z","updated_at":"2018-07-26T13:21:36Z","closed_at":null,"author_association":"NONE","body":"After the commit using AAC or SBC codecs something exits from the loudspeakers but it is like pieces of waveform separated by silences (likes 3 or 4 per seconds). (Sounds like someone at the volume that raises to 100% and then to 0% 3 or 4 times per seconds... this is the effect)\r\n\r\nJul 23 20:59:36 moode bluealsa[16027]: /usr/bin/bluealsa: ../../src/bluez.c:1032: Signal: PropertiesChanged: org.bluez.MediaTransport1\r\nJul 23 20:59:36 moode bluealsa[16027]: /usr/bin/bluealsa: ../../src/bluez.c:1032: Signal: PropertiesChanged: org.bluez.MediaTransport1\r\nJul 23 20:59:36 moode bluealsa[16027]: /usr/bin/bluealsa: ../../src/transport.c:691: State transition: 0 -> 1\r\nJul 23 20:59:36 moode bluealsa[16027]: /usr/bin/bluealsa: ../../src/transport.c:835: New transport: 17 (MTU: R:672 W:672)\r\nJul 23 20:59:36 moode bluealsa[16027]: /usr/bin/bluealsa: ../../src/bluez.c:1032: Signal: PropertiesChanged: org.bluez.MediaTransport1\r\nJul 23 20:59:36 moode bluealsa[16027]: /usr/bin/bluealsa: ../../src/transport.c:691: State transition: 1 -> 2\r\nJul 23 20:59:36 moode bluealsa[16027]: /usr/bin/bluealsa: ../../src/transport.c:104: Created new IO thread: A2DP Sink\r\nJul 23 20:59:36 moode bluealsa[16027]: /usr/bin/bluealsa: ../../src/io.c:590: Starting IO loop: A2DP Sink (AAC)\r\nJul 23 20:59:36 moode bluealsa[16027]: /usr/bin/bluealsa: ../../src/io.c:676: Fragmented RTP packet [12]: LATM len: 183\r\nJul 23 20:59:36 moode bluealsa[16027]: /usr/bin/bluealsa: ../../src/io.c:676: Fragmented RTP packet [13]: LATM len: 42\r\nJul 23 20:59:36 moode bluealsa[16027]: /usr/bin/bluealsa: Activating RTP mark bit quirk workaround\r\nJul 23 20:59:36 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:36 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:36 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 40 != 37\r\nJul 23 20:59:36 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:36 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 44 != 42\r\nJul 23 20:59:36 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:36 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 47 != 45\r\nJul 23 20:59:36 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:36 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 52 != 48\r\nJul 23 20:59:37 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:37 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 56 != 54\r\nJul 23 20:59:37 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:37 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 59 != 57\r\nJul 23 20:59:37 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:37 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 63 != 60\r\nJul 23 20:59:37 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:37 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:37 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 68 != 65\r\nJul 23 20:59:37 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 71 != 69\r\nJul 23 20:59:37 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:37 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 76 != 72\r\nJul 23 20:59:37 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:37 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 79 != 77\r\nJul 23 20:59:37 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:37 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 84 != 81\r\nJul 23 20:59:37 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:37 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 88 != 85\r\nJul 23 20:59:37 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 91 != 89\r\nJul 23 20:59:37 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:37 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:37 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 96 != 93\r\nJul 23 20:59:38 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:38 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 100 != 97\r\nJul 23 20:59:38 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 103 != 101\r\nJul 23 20:59:38 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:38 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:38 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 107 != 105\r\nJul 23 20:59:38 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:38 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 111 != 108\r\nJul 23 20:59:38 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 115 != 112\r\nJul 23 20:59:38 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:38 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:38 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 118 != 117\r\nJul 23 20:59:38 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:38 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 123 != 119\r\nJul 23 20:59:38 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 127 != 124\r\nJul 23 20:59:38 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 130 != 128\r\nJul 23 20:59:38 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:38 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 134 != 132\r\nJul 23 20:59:38 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:38 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 138 != 135\r\nJul 23 20:59:38 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:38 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 142 != 139\r\nJul 23 20:59:39 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:39 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 146 != 144\r\nJul 23 20:59:39 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:39 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 150 != 147\r\nJul 23 20:59:39 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:39 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 154 != 151\r\nJul 23 20:59:39 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:39 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:39 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 158 != 156\r\nJul 23 20:59:39 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 162 != 159\r\nJul 23 20:59:39 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:39 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 166 != 163\r\nJul 23 20:59:39 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:39 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:39 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 170 != 168\r\nJul 23 20:59:39 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 173 != 171\r\nJul 23 20:59:39 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:39 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 178 != 174\r\nJul 23 20:59:39 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:39 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 182 != 179\r\nJul 23 20:59:39 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:39 moode bluealsa[16027]: /usr/bin/bluealsa: Missing RTP packet: 2 != 184\r\nJul 23 20:59:40 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:40 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:40 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:40 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:40 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:40 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:40 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:40 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:40 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:40 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:40 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:41 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:41 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:41 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:41 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:41 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:41 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:41 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:41 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:41 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:41 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:41 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\nJul 23 20:59:42 moode bluealsa-aplay[16147]: /usr/bin/bluealsa-aplay: ../../utils/aplay.c:425: An underrun has occurred\r\n"},"comment":{"url":"https://api.github.com/repos/Arkq/bluez-alsa/issues/comments/408095288","html_url":"https://github.com/Arkq/bluez-alsa/issues/132#issuecomment-408095288","issue_url":"https://api.github.com/repos/Arkq/bluez-alsa/issues/132","id":408095288,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODA5NTI4OA==","user":{"login":"Arkq","id":6979798,"node_id":"MDQ6VXNlcjY5Nzk3OTg=","avatar_url":"https://avatars3.githubusercontent.com/u/6979798?v=4","gravatar_id":"","url":"https://api.github.com/users/Arkq","html_url":"https://github.com/Arkq","followers_url":"https://api.github.com/users/Arkq/followers","following_url":"https://api.github.com/users/Arkq/following{/other_user}","gists_url":"https://api.github.com/users/Arkq/gists{/gist_id}","starred_url":"https://api.github.com/users/Arkq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arkq/subscriptions","organizations_url":"https://api.github.com/users/Arkq/orgs","repos_url":"https://api.github.com/users/Arkq/repos","events_url":"https://api.github.com/users/Arkq/events{/privacy}","received_events_url":"https://api.github.com/users/Arkq/received_events","type":"User","site_admin":false},"created_at":"2018-07-26T13:21:36Z","updated_at":"2018-07-26T13:21:36Z","author_association":"OWNER","body":"I've made some changes (on top of current master) and pushed it into the [test-132](https://github.com/Arkq/bluez-alsa/tree/test-132) branch. It adds some debug lines, and restores previous behaviour (PCM device is opened during bluealsa-aplay startup). If this solution will fork, please check if it will still work when [these](https://github.com/Arkq/bluez-alsa/blob/test-132/utils/aplay.c#L344) lines are uncommented. If bluealsa-aplay still works, please post here the debug lines printed during bluealsa-aplay startup (enable debug during configuration)."}}
{"actor":{"display_login":"Arkq"}}