{"action":"created","issue":{"url":"https://api.github.com/repos/i-rinat/apulse/issues/26","labels_url":"https://api.github.com/repos/i-rinat/apulse/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/i-rinat/apulse/issues/26/comments","events_url":"https://api.github.com/repos/i-rinat/apulse/issues/26/events","html_url":"https://github.com/i-rinat/apulse/issues/26","id":69027861,"number":26,"title":"Apulse fails when an application opens a specially configured record device","user":{"login":"birdie-github","id":4958603,"avatar_url":"https://avatars.githubusercontent.com/u/4958603?v=3","gravatar_id":"","url":"https://api.github.com/users/birdie-github","html_url":"https://github.com/birdie-github","followers_url":"https://api.github.com/users/birdie-github/followers","following_url":"https://api.github.com/users/birdie-github/following{/other_user}","gists_url":"https://api.github.com/users/birdie-github/gists{/gist_id}","starred_url":"https://api.github.com/users/birdie-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birdie-github/subscriptions","organizations_url":"https://api.github.com/users/birdie-github/orgs","repos_url":"https://api.github.com/users/birdie-github/repos","events_url":"https://api.github.com/users/birdie-github/events{/privacy}","received_events_url":"https://api.github.com/users/birdie-github/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-04-16T23:20:05Z","updated_at":"2015-05-25T07:02:19Z","closed_at":null,"body":"I have two audio devices. The first one is a builtin IntelHDA sound card and the second one is a USB microphone. This setup will only work if I have a specially crafted .asoundrc. Here it is:\r\n\r\n```\r\npcm.logitech\r\n{\r\n    type hw\r\n    card LogitechUSB\r\n}\r\n\r\npcm.usb\r\n{\r\n    type dsnoop\r\n    ipc_key 234884\r\n    ipc_perm 0666\r\n    ipc_gid audio\r\n    slave {\r\n        pcm logitech\r\n    }\r\n}\r\n\r\npcm.!default\r\n{\r\n    type asym\r\n    playback.pcm\r\n    {\r\n        type plug\r\n        slave.pcm \"dmix\"\r\n    }\r\n    capture.pcm\r\n    {\r\n        type plug\r\n        slave.pcm \"usb\"\r\n    }\r\n}\r\n```\r\nThis file makes my USB microphone the default recording device. The problem with this set up is that Skype record ~0.5 seconds of audio and then fails.\r\n\r\nIt can be easily reproduced this way. Run this command, it will work:\r\n\r\n```\r\n$ apulse ffmpeg -f pulse -i default /tmp/pulse.wav\r\n```\r\n\r\nNow run it again (it will ask to overwrite the existing file), and ffmpeg will stall after recording exactly 51,278 bytes of audio. It seems like apulse fails when a recording device is routed via dsnoop and it's quickly reopened."},"comment":{"url":"https://api.github.com/repos/i-rinat/apulse/issues/comments/105143616","html_url":"https://github.com/i-rinat/apulse/issues/26#issuecomment-105143616","issue_url":"https://api.github.com/repos/i-rinat/apulse/issues/26","id":105143616,"user":{"login":"birdie-github","id":4958603,"avatar_url":"https://avatars.githubusercontent.com/u/4958603?v=3","gravatar_id":"","url":"https://api.github.com/users/birdie-github","html_url":"https://github.com/birdie-github","followers_url":"https://api.github.com/users/birdie-github/followers","following_url":"https://api.github.com/users/birdie-github/following{/other_user}","gists_url":"https://api.github.com/users/birdie-github/gists{/gist_id}","starred_url":"https://api.github.com/users/birdie-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birdie-github/subscriptions","organizations_url":"https://api.github.com/users/birdie-github/orgs","repos_url":"https://api.github.com/users/birdie-github/repos","events_url":"https://api.github.com/users/birdie-github/events{/privacy}","received_events_url":"https://api.github.com/users/birdie-github/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T07:02:19Z","updated_at":"2015-05-25T07:02:19Z","body":"I've just compiled the GIT version and it still doesn't work."}}