{"action":"created","issue":{"url":"https://api.github.com/repos/ValveSoftware/Dota-2-Reborn/issues/149","labels_url":"https://api.github.com/repos/ValveSoftware/Dota-2-Reborn/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/ValveSoftware/Dota-2-Reborn/issues/149/comments","events_url":"https://api.github.com/repos/ValveSoftware/Dota-2-Reborn/issues/149/events","html_url":"https://github.com/ValveSoftware/Dota-2-Reborn/issues/149","id":91529579,"number":149,"title":"Audio stutter with the alsa loopback device","user":{"login":"Tele42","id":3130103,"avatar_url":"https://avatars.githubusercontent.com/u/3130103?v=3","gravatar_id":"","url":"https://api.github.com/users/Tele42","html_url":"https://github.com/Tele42","followers_url":"https://api.github.com/users/Tele42/followers","following_url":"https://api.github.com/users/Tele42/following{/other_user}","gists_url":"https://api.github.com/users/Tele42/gists{/gist_id}","starred_url":"https://api.github.com/users/Tele42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tele42/subscriptions","organizations_url":"https://api.github.com/users/Tele42/orgs","repos_url":"https://api.github.com/users/Tele42/repos","events_url":"https://api.github.com/users/Tele42/events{/privacy}","received_events_url":"https://api.github.com/users/Tele42/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ValveSoftware/Dota-2-Reborn/labels/reviewed","name":"reviewed","color":"02e10c"}],"state":"closed","locked":false,"assignee":{"login":"davidw-valve","id":3083436,"avatar_url":"https://avatars.githubusercontent.com/u/3083436?v=3","gravatar_id":"","url":"https://api.github.com/users/davidw-valve","html_url":"https://github.com/davidw-valve","followers_url":"https://api.github.com/users/davidw-valve/followers","following_url":"https://api.github.com/users/davidw-valve/following{/other_user}","gists_url":"https://api.github.com/users/davidw-valve/gists{/gist_id}","starred_url":"https://api.github.com/users/davidw-valve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidw-valve/subscriptions","organizations_url":"https://api.github.com/users/davidw-valve/orgs","repos_url":"https://api.github.com/users/davidw-valve/repos","events_url":"https://api.github.com/users/davidw-valve/events{/privacy}","received_events_url":"https://api.github.com/users/davidw-valve/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ValveSoftware/Dota-2-Reborn/milestones/1","html_url":"https://github.com/ValveSoftware/Dota-2-Reborn/milestones/next%20release","labels_url":"https://api.github.com/repos/ValveSoftware/Dota-2-Reborn/milestones/1/labels","id":1177733,"number":1,"title":"next release","description":null,"creator":{"login":"danginsburg","id":375707,"avatar_url":"https://avatars.githubusercontent.com/u/375707?v=3","gravatar_id":"","url":"https://api.github.com/users/danginsburg","html_url":"https://github.com/danginsburg","followers_url":"https://api.github.com/users/danginsburg/followers","following_url":"https://api.github.com/users/danginsburg/following{/other_user}","gists_url":"https://api.github.com/users/danginsburg/gists{/gist_id}","starred_url":"https://api.github.com/users/danginsburg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danginsburg/subscriptions","organizations_url":"https://api.github.com/users/danginsburg/orgs","repos_url":"https://api.github.com/users/danginsburg/repos","events_url":"https://api.github.com/users/danginsburg/events{/privacy}","received_events_url":"https://api.github.com/users/danginsburg/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":17,"state":"open","created_at":"2015-06-23T16:45:38Z","updated_at":"2015-07-01T00:01:48Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-06-27T23:42:14Z","updated_at":"2015-07-01T00:05:12Z","closed_at":"2015-07-01T00:01:17Z","body":"The 6/24 or 6/26 update introduced audio stuttering on my system, which uses JACK + the alsa loopback device. It was putting out clean audio before that.\r\n\r\n```\r\nProcessor Information:\r\n    Vendor:  AuthenticAMD\r\n    CPU Family:  0x15\r\n    CPU Model:  0x1\r\n    CPU Stepping:  0x2\r\n    CPU Type:  0x0\r\n    Speed:  3600 Mhz\r\n    8 logical processors\r\n    8 physical processors\r\n    HyperThreading:  Unsupported\r\n    FCMOV:  Supported\r\n    SSE2:  Supported\r\n    SSE3:  Supported\r\n    SSSE3:  Supported\r\n    SSE4a:  Supported\r\n    SSE41:  Supported\r\n    SSE42:  Supported\r\n    \r\nNetwork Information:\r\n    Network Speed:  \r\n    \r\nOperating System Version:\r\n    \"Gentoo Base System release 2.2\" (64 bit)\r\n    Kernel Name:  Linux\r\n    Kernel Version:  3.18.12-gentoo\r\n    X Server Vendor:  The X.Org Foundation\r\n    X Server Release:  11604000\r\n    X Window Manager:  KWin\r\n    Steam Runtime Version:  <Runtime disabled>\r\n    \r\nVideo Card:\r\n    Driver:  NVIDIA Corporation GeForce GTX 580/PCIe/SSE2\r\n\r\n    Driver Version:  4.5.0 NVIDIA 349.16\r\n    OpenGL Version: 4.5\r\n    Desktop Color Depth: 24 bits per pixel\r\n    Monitor Refresh Rate: 60 Hz\r\n    VendorID:  0x10de\r\n    DeviceID:  0x1080\r\n    Number of Monitors:  2\r\n    Number of Video Cards Not Detected\r\n    Primary Display Resolution:  1920 x 1080\r\n    Desktop Resolution: 3840 x 1080\r\n    Primary Display Size: 20.04\" x 11.26\"  (22.95\" diag)\r\n                                            50.9cm x 28.6cm  (58.3cm diag)\r\n    Primary Bus: PCI Express 16x\r\n    Primary VRAM: 3072 MB\r\n    Supported MSAA Modes:  2x 4x 8x 16x \r\n    \r\nSound card:\r\n    Audio device: Loopback Mixer\r\n    \r\nMemory:\r\n    RAM:  16033 Mb\r\n    \r\nMiscellaneous:\r\n    UI Language:  English\r\n    LANG:  en_US.UTF-8\r\n    Microphone:  Not set\r\n    Total Hard Disk Space Available:  1869539 Mb\r\n    Largest Free Hard Disk Block:  195831 Mb\r\n```    \r\njackd is running as:\r\n```/usr/bin/jackd -r -dalsa -r48000 -p1024 -n2 -s -M -D -Chw:2,0 -Phw:2 -i2 -o8```\r\nMy ~/.asoundrc - this was made by trial and error, it's probably suboptimal, but works in most cases:\r\n```\r\n# playback PCM device: using loopback subdevice 0,0\r\npcm.amix {\r\n  type dmix\r\n  ipc_key 219345\r\n  slave.pcm \"hw:Loopback,0,0\"\r\n  slave.channels 8\r\n  slave.period_size 2048\r\n}\r\n\r\n# capture PCM device: using loopback subdevice 0,1\r\npcm.asnoop {\r\n  type dsnoop\r\n  ipc_key 219346\r\n  slave.pcm \"hw:Loopback,0,1\"\r\n}\r\n\r\n# duplex device combining our PCM devices defined above\r\npcm.aduplex {\r\n  type asym\r\n  playback.pcm \"plug:amix\" #added plug: as a test\r\n  capture.pcm \"plug:asnoop\"\r\n}\r\n\r\n# ------------------------------------------------------\r\n# for jack alsa_in and alsa_out: looped-back signal at other ends\r\npcm.cloop {\r\n  type plug\r\n  slave.pcm \"hw:Loopback,1,1\"\r\n}\r\n\r\npcm.ploop {\r\n  type dsnoop\r\n  ipc_key 219348\r\n  slave.pcm \"hw:Loopback,1,0\"\r\n  slave.channels 8\r\n  slave.period_size 2048\r\n}\r\n\r\n# ------------------------------------------------------\r\n# alsa jack output plugin\r\npcm.jackplug {\r\n    type plug\r\n    slave.pcm \"jack\"\r\n    slave.format \"FLOAT_LE\"\r\n}\r\n\r\npcm.jack {\r\n    type jack\r\n    playback_ports {\r\n        0 system:playback_1\r\n        1 system:playback_2\r\n    }\r\n    capture_ports {\r\n        0 system:capture_1\r\n        1 system:capture_2\r\n    }\r\n}\r\n\r\n# ------------------------------------------------------\r\n# default device\r\n\r\npcm.!default {\r\n  type plug\r\n  slave.pcm \"aduplex\"\r\n}\r\n```\r\nPlease let me know if any other details are relevant, and I'm open to tinkering ... it would be nice if libSDL2 output directly to JACK, but not expected in any way."},"comment":{"url":"https://api.github.com/repos/ValveSoftware/Dota-2-Reborn/issues/comments/117375729","html_url":"https://github.com/ValveSoftware/Dota-2-Reborn/issues/149#issuecomment-117375729","issue_url":"https://api.github.com/repos/ValveSoftware/Dota-2-Reborn/issues/149","id":117375729,"user":{"login":"Celexi","id":2287860,"avatar_url":"https://avatars.githubusercontent.com/u/2287860?v=3","gravatar_id":"","url":"https://api.github.com/users/Celexi","html_url":"https://github.com/Celexi","followers_url":"https://api.github.com/users/Celexi/followers","following_url":"https://api.github.com/users/Celexi/following{/other_user}","gists_url":"https://api.github.com/users/Celexi/gists{/gist_id}","starred_url":"https://api.github.com/users/Celexi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Celexi/subscriptions","organizations_url":"https://api.github.com/users/Celexi/orgs","repos_url":"https://api.github.com/users/Celexi/repos","events_url":"https://api.github.com/users/Celexi/events{/privacy}","received_events_url":"https://api.github.com/users/Celexi/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T00:05:12Z","updated_at":"2015-07-01T00:05:12Z","body":"Audio fine for me now on fedora 22 with pulseaudio.\n\nOn Wed, Jul 1, 2015 at 1:03 AM, Tele42 <notifications@github.com> wrote:\n\n> I just checked, stutter is still present in the main menu.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/ValveSoftware/Dota-2-Reborn/issues/149#issuecomment-117375518>\n> .\n>\n"}}