{"action":"created","issue":{"url":"https://api.github.com/repos/cboxdoerfer/ddb_musical_spectrum/issues/8","labels_url":"https://api.github.com/repos/cboxdoerfer/ddb_musical_spectrum/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/cboxdoerfer/ddb_musical_spectrum/issues/8/comments","events_url":"https://api.github.com/repos/cboxdoerfer/ddb_musical_spectrum/issues/8/events","html_url":"https://github.com/cboxdoerfer/ddb_musical_spectrum/issues/8","id":58528255,"number":8,"title":"Pulseaudio + remapped sinks: stuttering refresh if pavucontrol not running","user":{"login":"Soukyuu","id":2095054,"avatar_url":"https://avatars.githubusercontent.com/u/2095054?v=3","gravatar_id":"","url":"https://api.github.com/users/Soukyuu","html_url":"https://github.com/Soukyuu","followers_url":"https://api.github.com/users/Soukyuu/followers","following_url":"https://api.github.com/users/Soukyuu/following{/other_user}","gists_url":"https://api.github.com/users/Soukyuu/gists{/gist_id}","starred_url":"https://api.github.com/users/Soukyuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soukyuu/subscriptions","organizations_url":"https://api.github.com/users/Soukyuu/orgs","repos_url":"https://api.github.com/users/Soukyuu/repos","events_url":"https://api.github.com/users/Soukyuu/events{/privacy}","received_events_url":"https://api.github.com/users/Soukyuu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-22T23:41:09Z","updated_at":"2015-02-23T14:11:26Z","closed_at":null,"body":"This... is probably the most weird sounding issue I ever reported.\r\n\r\nI have a 7.1 Realtek ALC889 chip, which I configured to have two sinks: one for my 5.1 headset, and one for my stereo speakers following the example [here](https://wiki.archlinux.org/index.php/PulseAudio/Examples#Splitting_front.2Frear). I also have another headset connected via BT.\r\n\r\nThe FFT size, bar count or refresh rate I set does not seem to matter. What I'm seeing is this:\r\n- BT headset: smooth animation, almost no CPU impact \r\n- any of the Realtek outputs: refresh rate drops to ~150ms, CPU spikes to ~20%\r\n\r\nAnd now comes the weird part: If I start pavucontrol, the stutters on Realtek output immediately go away, so does the CPU usage. It does not matter if pavucontrol is visible or minimized, as long as it is running, the refresh rate is smooth. As soon as I close pavucontrol, the stuttering starts again.\r\n\r\nThis is on an AMD Phenom II X4 970BE/nVidia 260GTX running KDE/arch linux x64. I'm running the latest deadbeef-devel as well as latest git snapshot of musical spectrum.\r\n\r\nAny idea what might be causing this? I think I'm seeing something like this with the original spectrum component, but it does not have a configurable refresh rate and the one it has set barely differs from the stuttering I'm seeing."},"comment":{"url":"https://api.github.com/repos/cboxdoerfer/ddb_musical_spectrum/issues/comments/75546559","html_url":"https://github.com/cboxdoerfer/ddb_musical_spectrum/issues/8#issuecomment-75546559","issue_url":"https://api.github.com/repos/cboxdoerfer/ddb_musical_spectrum/issues/8","id":75546559,"user":{"login":"Soukyuu","id":2095054,"avatar_url":"https://avatars.githubusercontent.com/u/2095054?v=3","gravatar_id":"","url":"https://api.github.com/users/Soukyuu","html_url":"https://github.com/Soukyuu","followers_url":"https://api.github.com/users/Soukyuu/followers","following_url":"https://api.github.com/users/Soukyuu/following{/other_user}","gists_url":"https://api.github.com/users/Soukyuu/gists{/gist_id}","starred_url":"https://api.github.com/users/Soukyuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soukyuu/subscriptions","organizations_url":"https://api.github.com/users/Soukyuu/orgs","repos_url":"https://api.github.com/users/Soukyuu/repos","events_url":"https://api.github.com/users/Soukyuu/events{/privacy}","received_events_url":"https://api.github.com/users/Soukyuu/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T14:11:26Z","updated_at":"2015-02-23T14:11:26Z","body":"But if it was doing resampling wrong, why would it get fixed by merely starting pavucontrol (volume control app)? It doesn't have any samplerate/resampling settings. There is also no audible difference between ddb -> alsa -> pulse and ddb -> pulse, as far as I can tell.\r\n\r\nIn fact, I had a problem with ALSA using a bad resampler where the sound sounded heavily distorted for example on piano notes, so I think I'd hear a difference if it was that... \r\n\r\nMaybe ddb's pulseaudio plugin is doing something wrong, or gets confused by the separated sinks... but then, even using the unsplit audio card for the output shows the same behavior. I should probably open a bug on the ddb tracker...\r\n\r\nI take it you can't reproduce it on your side?"}}