{"action":"created","issue":{"url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/701","repository_url":"https://api.github.com/repos/mikebrady/shairport-sync","labels_url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/701/labels{/name}","comments_url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/701/comments","events_url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/701/events","html_url":"https://github.com/mikebrady/shairport-sync/issues/701","id":325573835,"number":701,"title":"Alsa device - format for output_device?","user":{"login":"choppedfish","id":39548445,"avatar_url":"https://avatars1.githubusercontent.com/u/39548445?v=4","gravatar_id":"","url":"https://api.github.com/users/choppedfish","html_url":"https://github.com/choppedfish","followers_url":"https://api.github.com/users/choppedfish/followers","following_url":"https://api.github.com/users/choppedfish/following{/other_user}","gists_url":"https://api.github.com/users/choppedfish/gists{/gist_id}","starred_url":"https://api.github.com/users/choppedfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choppedfish/subscriptions","organizations_url":"https://api.github.com/users/choppedfish/orgs","repos_url":"https://api.github.com/users/choppedfish/repos","events_url":"https://api.github.com/users/choppedfish/events{/privacy}","received_events_url":"https://api.github.com/users/choppedfish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-23T07:03:41Z","updated_at":"2018-05-23T15:20:19Z","closed_at":null,"author_association":"NONE","body":"Hi, I've got a RPi3 running Raspbian lite - latest build from 3 days ago.\r\n\r\nI compiled shairport-sync, darkice and icecast2 and had instance success airplaying from my IOS devices to my squeezeboxes (as a radio station). \r\n\r\nThe next step is to have multiple shairport-sync process running for multiple airplay targets. I did follow post #37 but it took a while before I discovered it was a little out of date in a few things and I could never get the second process running. \r\n\r\nThat all said I think part of the issue is with the alsa devices. The config file for shairport-sync is very basic and contains the items below. \r\ngeneral = {\r\n  name = \"ByronAirplay\";\r\n  interpolation = \"soxr\";\r\n};\r\n\r\nalsa = {\r\n output_device = \"hw:1,0\";\r\n};\r\n\r\ndarkice.cfg contains the following relevant info:\r\n[input]\r\ndevice          = hw:Loopback,1,0\r\n\r\nRunning as above their is no sound via icecast.\r\n\r\nRunning with the alsa output_device commented out works fine, therefore the default device is being chosen (whatever that is)..\r\n\r\nI've tried variations such as hw:1,0 hw:0,1 hw:1 etc. and nothing seems to work.\r\n\r\nI assume the syntax or somesuch for the alsa device is incorrect but i've tried many variations with no avail. I assume shairport-sync and darkice have to match.\r\n\r\nThe alsa devices are listed below.\r\npi@ByronAirplay:/etc $ aplay -l\r\n**** List of PLAYBACK Hardware Devices ****\r\ncard 0: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]\r\n  Subdevices: 8/8\r\n  Subdevice #0: subdevice #0\r\n  Subdevice #1: subdevice #1\r\n  Subdevice #2: subdevice #2\r\n  Subdevice #3: subdevice #3\r\n  Subdevice #4: subdevice #4\r\n  Subdevice #5: subdevice #5\r\n  Subdevice #6: subdevice #6\r\n  Subdevice #7: subdevice #7\r\ncard 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]\r\n  Subdevices: 8/8\r\n  Subdevice #0: subdevice #0\r\n  Subdevice #1: subdevice #1\r\n  Subdevice #2: subdevice #2\r\n  Subdevice #3: subdevice #3\r\n  Subdevice #4: subdevice #4\r\n  Subdevice #5: subdevice #5\r\n  Subdevice #6: subdevice #6\r\n  Subdevice #7: subdevice #7\r\ncard 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]\r\n  Subdevices: 7/7\r\n  Subdevice #0: subdevice #0\r\n  Subdevice #1: subdevice #1\r\n  Subdevice #2: subdevice #2\r\n  Subdevice #3: subdevice #3\r\n  Subdevice #4: subdevice #4\r\n  Subdevice #5: subdevice #5\r\n  Subdevice #6: subdevice #6\r\ncard 1: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]\r\n  Subdevices: 1/1\r\n  Subdevice #0: subdevice #0\r\n\r\nObviously I need to have different devices if i'm to run multiple shairport-sync processes so this is a major stumbling block.\r\n\r\nThanks\r\n\r\nByron\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/comments/391387282","html_url":"https://github.com/mikebrady/shairport-sync/issues/701#issuecomment-391387282","issue_url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/701","id":391387282,"user":{"login":"mikebrady","id":4265913,"avatar_url":"https://avatars0.githubusercontent.com/u/4265913?v=4","gravatar_id":"","url":"https://api.github.com/users/mikebrady","html_url":"https://github.com/mikebrady","followers_url":"https://api.github.com/users/mikebrady/followers","following_url":"https://api.github.com/users/mikebrady/following{/other_user}","gists_url":"https://api.github.com/users/mikebrady/gists{/gist_id}","starred_url":"https://api.github.com/users/mikebrady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikebrady/subscriptions","organizations_url":"https://api.github.com/users/mikebrady/orgs","repos_url":"https://api.github.com/users/mikebrady/repos","events_url":"https://api.github.com/users/mikebrady/events{/privacy}","received_events_url":"https://api.github.com/users/mikebrady/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T15:20:19Z","updated_at":"2018-05-23T15:20:19Z","author_association":"OWNER","body":"Thanks for the post. I haven’t tried this kind of thing before, and to be honest, Shairport Sync was designed for output to a real sound card that returns status and delay information. I am not sure if the loopback device returns that kind on information. \r\n\r\nThat said, I suppose the way to move forward is to get the loopback stuff working with something like `aplay` rather than using Shairport Sync. If you could get a 44.1k 16-bit stereo sound file, can you play it using `aplay` into the loopback?\r\n\r\nAnother possibility is to use `alsamixer` to see what output devices are there. Once you have found and selected the device, if you then then use the F6 function key, you’ll see the address of the selected device under the cursor."}}
{"actor":{"display_login":"mikebrady"}}