payload: {"action":"created","issue":{"url":"https://api.github.com/repos/dpapavas/alsaloudness/issues/4","repository_url":"https://api.github.com/repos/dpapavas/alsaloudness","labels_url":"https://api.github.com/repos/dpapavas/alsaloudness/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/dpapavas/alsaloudness/issues/4/comments","events_url":"https://api.github.com/repos/dpapavas/alsaloudness/issues/4/events","html_url":"https://github.com/dpapavas/alsaloudness/issues/4","id":506303336,"node_id":"MDU6SXNzdWU1MDYzMDMzMzY=","number":4,"title":"Loudness usage via mpd","user":{"login":"maziggy","id":17797632,"node_id":"MDQ6VXNlcjE3Nzk3NjMy","avatar_url":"https://avatars3.githubusercontent.com/u/17797632?v=4","gravatar_id":"","url":"https://api.github.com/users/maziggy","html_url":"https://github.com/maziggy","followers_url":"https://api.github.com/users/maziggy/followers","following_url":"https://api.github.com/users/maziggy/following{/other_user}","gists_url":"https://api.github.com/users/maziggy/gists{/gist_id}","starred_url":"https://api.github.com/users/maziggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maziggy/subscriptions","organizations_url":"https://api.github.com/users/maziggy/orgs","repos_url":"https://api.github.com/users/maziggy/repos","events_url":"https://api.github.com/users/maziggy/events{/privacy}","received_events_url":"https://api.github.com/users/maziggy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-10-13T10:21:48Z","updated_at":"2019-11-19T20:09:28Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI'm using Volumio and would like to use the alsaloudness plugin. To be honest I'm not that familiar with the ALSA stuff. So maybe I'm just missing something.\r\n\r\n# /etc/asound.conf\r\n\r\n`pcm_type.loudness {\r\n    lib \"/usr/lib/libasound_module_pcm_loudness.so\"\r\n}\r\n\r\npcm.plugloudness {\r\n    type loudness\r\n    reference 82\r\n    attenuation -20\r\n    controls {\r\n        install yes\r\n    }\r\n    slave.pcm \"plughw:1,0\"\r\n}\r\n\r\npcm.loudness{\r\n    type plug\r\n    slave.pcm \"plugloudness\"\r\n}\r\n`\r\n\r\n# /etc/mpd.conf\r\n`[...]\r\naudio_output {\r\n                type            \"alsa\"\r\n                name            \"alsa\"\r\n                device          \"plug:loudness\"\r\n}\r\n[...]\r\n`\r\n\r\nUnfortunately I always get the error message \"Failed to open ALSA device \"plug:loudness\": invalid argument.\r\n\r\nAny help is appreciated!\r\n\r\nThanks, Martin\r\n"},"comment":{"url":"https://api.github.com/repos/dpapavas/alsaloudness/issues/comments/555689977","html_url":"https://github.com/dpapavas/alsaloudness/issues/4#issuecomment-555689977","issue_url":"https://api.github.com/repos/dpapavas/alsaloudness/issues/4","id":555689977,"node_id":"MDEyOklzc3VlQ29tbWVudDU1NTY4OTk3Nw==","user":{"login":"carstenbusch","id":26570614,"node_id":"MDQ6VXNlcjI2NTcwNjE0","avatar_url":"https://avatars2.githubusercontent.com/u/26570614?v=4","gravatar_id":"","url":"https://api.github.com/users/carstenbusch","html_url":"https://github.com/carstenbusch","followers_url":"https://api.github.com/users/carstenbusch/followers","following_url":"https://api.github.com/users/carstenbusch/following{/other_user}","gists_url":"https://api.github.com/users/carstenbusch/gists{/gist_id}","starred_url":"https://api.github.com/users/carstenbusch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carstenbusch/subscriptions","organizations_url":"https://api.github.com/users/carstenbusch/orgs","repos_url":"https://api.github.com/users/carstenbusch/repos","events_url":"https://api.github.com/users/carstenbusch/events{/privacy}","received_events_url":"https://api.github.com/users/carstenbusch/received_events","type":"User","site_admin":false},"created_at":"2019-11-19T20:09:28Z","updated_at":"2019-11-19T20:09:28Z","author_association":"NONE","body":"Hi,\r\n\r\nI played around with your Plugin and I'm really happy with it! I'm running a raspberry pi3b with Squeezebox with an equalizer as Alsa-Plugin. On top of that there's your Loudness-Plugin optimizing the Sound specially for lower volumes.\r\n\r\nBeeing able to adjust Attenuation instead of a \"plain volume\"-mixer allows a great sound at almost all volumes my amp/speakers allow. The only thing I'm struggeling with are some very loud crack's (almost like a shot) when playing Sound through the Loudness-Plugin. Seems to depend on the CPU-Usage the Plugin consumes. I played around with the amount of treads, window- and fft-size but that is changing the CPU-Usage within 43% and 48%: the crack's still come up.\r\n\r\nEven if I set on the Plugin without the 2nd-Plugin \"Equalizer\" it doesn't change a lot.\r\n\r\nThis is the current configuration:\r\n/etc/asound.conf\r\n\r\n```\r\n#ctl.!default {\r\n#    type hw\r\n#    card 0\r\n#}\r\npcm.equal {\r\n    type plug;\r\n    slave.pcm plugequal;\r\n}\r\nctl.equal {\r\n   type equal;\r\n   module \"Eq10\";\r\n}\r\n\r\npcm.plugequal {\r\n   type equal;\r\n   module \"Eq10\";\r\n   slave {\r\n     pcm \"plughw:0,0\";\r\n   }\r\n   hint {show on;description \"Equalizer for plughw:0,0\"}\r\n}\r\n\r\n\r\npcm_type.loudness {\r\n    lib \"/usr/local/lib/libasound_module_pcm_loudness.so\"\r\n}\r\n\r\n\r\n# This defines the plugin's configuration.  See the README file for\r\n# more information on the various parameters.\r\n\r\npcm.plugloudness {\r\n    type loudness\r\n\r\n    #threads 4\r\n    #window 4096\r\n    #fft 16384\r\n\r\n    reference 82\r\n    # Original: attenuation -20\r\n    attenuation -36\r\n\r\n    controls {\r\n\r\n        install yes\r\n\r\n        # prefix \"My \"\r\n    }\r\n\r\n    # Edit the line below to specify the card and device to play\r\n    # through, if necessary.\r\n\r\n    # Original: slave.pcm \"plughw:0,0\"\r\n    slave.pcm \"plugequal\"\r\n    #slave.pcm \"plughw:0,0\"\r\n        hint {show on;description \"Loudness-Plugin\"}\r\n}\r\n\r\n# alsaloudness does all processing in floating point, so a plug PCM is\r\n# necessary to handle the necessary conversion on both the input and\r\n# output side.  (This is also the reason for specifying plughw above.)\r\n\r\npcm.loudness{\r\n    type plug\r\n\r\n    slave {\r\n          pcm plugloudness\r\n    }\r\n}\r\n\r\n\r\n#########################\r\n# Standard-Ausgabe\r\n#\r\n#########################\r\n\r\npcm.!default {\r\n    type plug\r\n    slave.pcm \"plugloudness\"\r\n}\r\n```\r\n\r\nDo you have any recommendations? Changing to a raspberry 4 brings better performance, but you didn't have that performance while developing that plugin one year ago...\r\n\r\nThanks a lot, Carsten"}}
other: {"actor":{"display_login":"carstenbusch"}}