{"action":"created","issue":{"url":"https://api.github.com/repos/RustAudio/rust-portaudio/issues/128","repository_url":"https://api.github.com/repos/RustAudio/rust-portaudio","labels_url":"https://api.github.com/repos/RustAudio/rust-portaudio/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/RustAudio/rust-portaudio/issues/128/comments","events_url":"https://api.github.com/repos/RustAudio/rust-portaudio/issues/128/events","html_url":"https://github.com/RustAudio/rust-portaudio/issues/128","id":138608019,"number":128,"title":"Callback function never called - arm","user":{"login":"bburdette","id":157330,"avatar_url":"https://avatars.githubusercontent.com/u/157330?v=3","gravatar_id":"","url":"https://api.github.com/users/bburdette","html_url":"https://github.com/bburdette","followers_url":"https://api.github.com/users/bburdette/followers","following_url":"https://api.github.com/users/bburdette/following{/other_user}","gists_url":"https://api.github.com/users/bburdette/gists{/gist_id}","starred_url":"https://api.github.com/users/bburdette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bburdette/subscriptions","organizations_url":"https://api.github.com/users/bburdette/orgs","repos_url":"https://api.github.com/users/bburdette/repos","events_url":"https://api.github.com/users/bburdette/events{/privacy}","received_events_url":"https://api.github.com/users/bburdette/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RustAudio/rust-portaudio/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-04T22:43:25Z","updated_at":"2016-04-27T03:45:39Z","closed_at":null,"body":"I'm working on getting rust-portaudio to work on my bananapi.  On the bananapi I want to ignore the builtin audio devices and use a USB soundblaster instead.  I'm able to specify that device using a device index, but I get a lot of error messages concerning the builtin audio device.  The results is I don't hear any audio.  I'm not sure what the cause might be, though the error messages look suspicious.  PortAudio doesn't seem to be too happy.\r\n\r\nFWIW, I am able to play audio through the soundblaster using other sound sources on that computer.   aplay works, as does supercollider running through jack1.  \r\n\r\nOutput from my [test program](https://github.com/chronopoulos/cyclophone/blob/f7e6fed59cf23657a0e69adcf7175e6c1df3749d/rust/cyclofraust_pa/src/main.rs) is below.  (portaudio startup is at line 89 in my test program).\r\n\r\n```\r\ninitting with sample rate: 44100\r\nadd_elem(ui_elem_type_t type, char *label) 0x00\r\nadd_elem(ui_elem_type_t type, char *label) Volume\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.front.0:CARD=0'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM front\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.surround51.0:CARD=0'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround21\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.surround51.0:CARD=0'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround21\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.surround40.0:CARD=0'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround40\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.surround51.0:CARD=0'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround41\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.surround51.0:CARD=0'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround50\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.surround51.0:CARD=0'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround51\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.surround71.0:CARD=0'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround71\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM iec958\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM spdif\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM spdif\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline\r\nALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused\r\n\r\nALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused\r\n\r\nconnect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No such file or directory)\r\nattempt to connect to server failed\r\n--------------------------------------- DeviceIndex(1)\r\nDeviceInfo {\r\n    struct_version: 2,\r\n    name: \"Sound Blaster X-Fi Go! Pro: USB Audio (hw:1,0)\",\r\n    host_api: 0,\r\n    max_input_channels: 2,\r\n    max_output_channels: 2,\r\n    default_low_input_latency: 0.008684807256235827,\r\n    default_low_output_latency: 0.008707482993197279,\r\n    default_high_input_latency: 0.034829931972789115,\r\n    default_high_output_latency: 0.034829931972789115,\r\n    default_sample_rate: 44100\r\n}\r\nSupported standard sample rates for half-duplex 16-bit 2 channel input:\r\n\t44100hz\r\nSupported standard sample rates for half-duplex 16-bit 2 channel output:\r\n\t44100hz\r\nSupported standard sample rates for full-duplex 16-bit 2 channel input, 2 channel output:\r\n\t44100hz\r\n```\r\n\r\nAnd here's output from the 'devices.rs' example:\r\n\r\n```\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.front.0:CARD=0'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM front\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.surround51.0:CARD=0'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround21\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.surround51.0:CARD=0'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround21\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.surround40.0:CARD=0'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround40\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.surround51.0:CARD=0'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround41\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.surround51.0:CARD=0'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround50\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.surround51.0:CARD=0'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround51\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.surround71.0:CARD=0'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround71\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM iec958\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM spdif\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.sunxi-CODEC.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'\r\nALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM spdif\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline\r\nALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline\r\nALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused\r\n\r\nALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused\r\n\r\nconnect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No such file or directory)\r\nattempt to connect to server failed\r\nNumber of devices = 7\r\n--------------------------------------- DeviceIndex(0)\r\nDeviceInfo {\r\n    struct_version: 2,\r\n    name: \"sunxi-CODEC: PCM (hw:0,0)\",\r\n    host_api: 0,\r\n    max_input_channels: 2,\r\n    max_output_channels: 2,\r\n    default_low_input_latency: 0.06965986394557823,\r\n    default_low_output_latency: 0.06965986394557823,\r\n    default_high_input_latency: 0.06965986394557823,\r\n    default_high_output_latency: 0.06965986394557823,\r\n    default_sample_rate: 44100\r\n}\r\nSupported standard sample rates for half-duplex 16-bit 2 channel input:\r\n\t8000hz\r\n\t11025hz\r\n\t12000hz\r\n\t16000hz\r\n\t22050hz\r\n\t24000hz\r\n\t32000hz\r\n\t44100hz\r\n\t48000hz\r\n\t96000hz\r\n\t192000hz\r\nSupported standard sample rates for half-duplex 16-bit 2 channel output:\r\n\t8000hz\r\n\t11025hz\r\n\t12000hz\r\n\t16000hz\r\n\t22050hz\r\n\t24000hz\r\n\t32000hz\r\n\t44100hz\r\n\t48000hz\r\n\t96000hz\r\n\t192000hz\r\nSupported standard sample rates for full-duplex 16-bit 2 channel input, 2 channel output:\r\n\t8000hz\r\n\t11025hz\r\n\t12000hz\r\n\t16000hz\r\n\t22050hz\r\n\t24000hz\r\n\t32000hz\r\n\t44100hz\r\n\t48000hz\r\n\t96000hz\r\n\t192000hz\r\n--------------------------------------- DeviceIndex(1)\r\nDeviceInfo {\r\n    struct_version: 2,\r\n    name: \"Sound Blaster X-Fi Go! Pro: USB Audio (hw:1,0)\",\r\n    host_api: 0,\r\n    max_input_channels: 2,\r\n    max_output_channels: 2,\r\n    default_low_input_latency: 0.008684807256235827,\r\n    default_low_output_latency: 0.008707482993197279,\r\n    default_high_input_latency: 0.034829931972789115,\r\n    default_high_output_latency: 0.034829931972789115,\r\n    default_sample_rate: 44100\r\n}\r\nSupported standard sample rates for half-duplex 16-bit 2 channel input:\r\n\t44100hz\r\nSupported standard sample rates for half-duplex 16-bit 2 channel output:\r\n\t44100hz\r\nSupported standard sample rates for full-duplex 16-bit 2 channel input, 2 channel output:\r\n\t44100hz\r\n--------------------------------------- DeviceIndex(2)\r\nDeviceInfo {\r\n    struct_version: 2,\r\n    name: \"sysdefault\",\r\n    host_api: 0,\r\n    max_input_channels: 128,\r\n    max_output_channels: 128,\r\n    default_low_input_latency: 0.06965986394557823,\r\n    default_low_output_latency: 0.06965986394557823,\r\n    default_high_input_latency: 0.06965986394557823,\r\n    default_high_output_latency: 0.06965986394557823,\r\n    default_sample_rate: 44100\r\n}\r\nSupported standard sample rates for half-duplex 16-bit 128 channel input:\r\n\t8000hz\r\n\t9600hz\r\n\t11025hz\r\n\t12000hz\r\n\t16000hz\r\n\t22050hz\r\n\t24000hz\r\n\t32000hz\r\n\t44100hz\r\n\t48000hz\r\n\t88200hz\r\n\t96000hz\r\n\t192000hz\r\nSupported standard sample rates for half-duplex 16-bit 128 channel output:\r\n\t8000hz\r\n\t9600hz\r\n\t11025hz\r\n\t12000hz\r\n\t16000hz\r\n\t22050hz\r\n\t24000hz\r\n\t32000hz\r\n\t44100hz\r\n\t48000hz\r\n\t88200hz\r\n\t96000hz\r\n\t192000hz\r\nSupported standard sample rates for full-duplex 16-bit 128 channel input, 128 channel output:\r\n\t8000hz\r\n\t9600hz\r\n\t11025hz\r\n\t12000hz\r\n\t16000hz\r\n\t22050hz\r\n\t24000hz\r\n\t32000hz\r\n\t44100hz\r\n\t48000hz\r\n\t88200hz\r\n\t96000hz\r\n\t192000hz\r\n--------------------------------------- DeviceIndex(3)\r\nDeviceInfo {\r\n    struct_version: 2,\r\n    name: \"default\",\r\n    host_api: 0,\r\n    max_input_channels: 128,\r\n    max_output_channels: 128,\r\n    default_low_input_latency: 0.06965986394557823,\r\n    default_low_output_latency: 0.06965986394557823,\r\n    default_high_input_latency: 0.06965986394557823,\r\n    default_high_output_latency: 0.06965986394557823,\r\n    default_sample_rate: 44100\r\n}\r\nSupported standard sample rates for half-duplex 16-bit 128 channel input:\r\n\t8000hz\r\n\t9600hz\r\n\t11025hz\r\n\t12000hz\r\n\t16000hz\r\n\t22050hz\r\n\t24000hz\r\n\t32000hz\r\n\t44100hz\r\n\t48000hz\r\n\t88200hz\r\n\t96000hz\r\n\t192000hz\r\nSupported standard sample rates for half-duplex 16-bit 128 channel output:\r\n\t8000hz\r\n\t9600hz\r\n\t11025hz\r\n\t12000hz\r\n\t16000hz\r\n\t22050hz\r\n\t24000hz\r\n\t32000hz\r\n\t44100hz\r\n\t48000hz\r\n\t88200hz\r\n\t96000hz\r\n\t192000hz\r\nSupported standard sample rates for full-duplex 16-bit 128 channel input, 128 channel output:\r\n\t8000hz\r\n\t9600hz\r\n\t11025hz\r\n\t12000hz\r\n\t16000hz\r\n\t22050hz\r\n\t24000hz\r\n\t32000hz\r\n\t44100hz\r\n\t48000hz\r\n\t88200hz\r\n\t96000hz\r\n\t192000hz\r\n--------------------------------------- DeviceIndex(4)\r\nDeviceInfo {\r\n    struct_version: 2,\r\n    name: \"dmix\",\r\n    host_api: 0,\r\n    max_input_channels: 0,\r\n    max_output_channels: 2,\r\n    default_low_input_latency: -1,\r\n    default_low_output_latency: 0.021333333333333333,\r\n    default_high_input_latency: -1,\r\n    default_high_output_latency: 0.021333333333333333,\r\n    default_sample_rate: 48000\r\n}\r\nSupported standard sample rates for half-duplex 16-bit 0 channel input:\r\nSupported standard sample rates for half-duplex 16-bit 2 channel output:\r\n\t48000hz\r\nSupported standard sample rates for full-duplex 16-bit 0 channel input, 2 channel output:\r\n--------------------------------------- DeviceIndex(5)\r\nDeviceInfo {\r\n    struct_version: 2,\r\n    name: \"/dev/dsp\",\r\n    host_api: 1,\r\n    max_input_channels: 16,\r\n    max_output_channels: 16,\r\n    default_low_input_latency: 0.008707482993197279,\r\n    default_low_output_latency: 0.008707482993197279,\r\n    default_high_input_latency: 0.034829931972789115,\r\n    default_high_output_latency: 0.034829931972789115,\r\n    default_sample_rate: 44100\r\n}\r\nSupported standard sample rates for half-duplex 16-bit 16 channel input:\r\nSupported standard sample rates for half-duplex 16-bit 16 channel output:\r\nSupported standard sample rates for full-duplex 16-bit 16 channel input, 16 channel output:\r\n--------------------------------------- DeviceIndex(6)\r\nDeviceInfo {\r\n    struct_version: 2,\r\n    name: \"/dev/dsp1\",\r\n    host_api: 1,\r\n    max_input_channels: 16,\r\n    max_output_channels: 16,\r\n    default_low_input_latency: 0.008707482993197279,\r\n    default_low_output_latency: 0.008707482993197279,\r\n    default_high_input_latency: 0.034829931972789115,\r\n    default_high_output_latency: 0.034829931972789115,\r\n    default_sample_rate: 44100\r\n}\r\nSupported standard sample rates for half-duplex 16-bit 16 channel input:\r\nSupported standard sample rates for half-duplex 16-bit 16 channel output:\r\nSupported standard sample rates for full-duplex 16-bit 16 channel input, 16 channel output:\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/RustAudio/rust-portaudio/issues/comments/214962508","html_url":"https://github.com/RustAudio/rust-portaudio/issues/128#issuecomment-214962508","issue_url":"https://api.github.com/repos/RustAudio/rust-portaudio/issues/128","id":214962508,"user":{"login":"ed-bassett","id":1636717,"avatar_url":"https://avatars.githubusercontent.com/u/1636717?v=3","gravatar_id":"","url":"https://api.github.com/users/ed-bassett","html_url":"https://github.com/ed-bassett","followers_url":"https://api.github.com/users/ed-bassett/followers","following_url":"https://api.github.com/users/ed-bassett/following{/other_user}","gists_url":"https://api.github.com/users/ed-bassett/gists{/gist_id}","starred_url":"https://api.github.com/users/ed-bassett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ed-bassett/subscriptions","organizations_url":"https://api.github.com/users/ed-bassett/orgs","repos_url":"https://api.github.com/users/ed-bassett/repos","events_url":"https://api.github.com/users/ed-bassett/events{/privacy}","received_events_url":"https://api.github.com/users/ed-bassett/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T03:45:39Z","updated_at":"2016-04-27T03:45:39Z","body":"Hi @mitchmindtree,\r\n\r\nI'm trying the same sort of thing with my raspberry pi zero, and am having the same issue. I'm using the '[pHAT DAC](https://shop.pimoroni.com/products/phat-dac)' from Pimoroni. Using speaker-test produces sound without issue, but like @bburdette, the callback's not getting called.\r\n\r\nInterestingly, running the test example from [portaudio-rs](https://github.com/mvdnes/portaudio-rs) works fine, so looking at the differences between that and your library might help narrow down what the issue is.\r\n\r\nI'm happy to help out trying to debug this, so let me know if there's anything you want me to test out and I'll let you know how it goes.\r\n\r\nDon't know if helps, but I've included the output from the hosts example below.\r\n\r\nCheers,\r\nEd\r\n\r\n```\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.front.0:CARD=0'\r\nALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM front\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.surround51.0:CARD=0'\r\nALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.surround51.0:CARD=0'\r\nALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.surround40.0:CARD=0'\r\nALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround40\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.surround51.0:CARD=0'\r\nALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround41\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.surround51.0:CARD=0'\r\nALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround50\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.surround51.0:CARD=0'\r\nALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround51\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.surround71.0:CARD=0'\r\nALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround71\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'\r\nALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM iec958\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'\r\nALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif\r\nALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'\r\nALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline\r\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline\r\nDefault Host API: Ok(0)\r\nAll Host APIs:\r\n(   \r\n    0,\r\n    HostApiInfo {\r\n        struct_version: 1,\r\n        host_type: ALSA,\r\n        name: \"ALSA\",\r\n        device_count: 4,\r\n        default_input_device: None,\r\n        default_output_device: Some(\r\n            DeviceIndex(\r\n                3\r\n            )\r\n        )\r\n    }\r\n)\r\n(   \r\n    1,\r\n    HostApiInfo {\r\n        struct_version: 1,\r\n        host_type: OSS,\r\n        name: \"OSS\",\r\n        device_count: 0,\r\n        default_input_device: None,\r\n        default_output_device: None\r\n    }\r\n)\r\n```"}}