On Sunday, August 11, 2019, 3:19:52 AM EDT, Alexandre Ratchov wrote:
>
>Could you try setting:
>
>sndiod_flags="-frsnd/0 -frsnd1"
>
>then restart sndiod, then run:
>
>aucat -f snd/1 -i song.wav

Apologies - somehow the cycles of restarting/powering off and on - it seems to 
be working fine now.

To make sure I understand correctly / and possible help others in future 
reading thread:
(OpenBSD 6.5, amd64)

/etc/rc.conf.local
sndiod_flags="-f rsnd/1"
(This tells the sndiod daemon to configure the first _raw_ audio device = 
'audio1' in dmesg = 'rsnd/1',
and this becomes exposed as the first sndiod device 'snd/0')

aucat -f snd/0 -i song.wav
(Plays song.wav through the first sndiod exposed device, 'snd/0' = 'rsnd/1' )
This works

aucat -f rsnd/0 -i song.wav
(Plays song.wav through the _raw_ sound device 'audio0' in dmesg, the onboard 
Intel Audio)
This works (note, 'rsnd/0' is not exposed as any 'snd/N' available device)

aucat -f rsnd/1 -i song.wav
(Plays song.wav through the _raw_ sound device 'audio1' in dmesg, in my case 
the USB speakers)
This works

aucat -f snd/1 -i song.wav
(fails because with sndiod_flags -f rsnd1, then sndiod only exposes one device,
'snd/0' = the _raw_ sound device 'audio1' = 'rsnd/1' , and there is no 'snd/1')

aucat -i song.wav
(Plays song.wav through the default sndiod exposed device 'snd/0' = 'rsnd/1' )
This works

Hopefully I have that all correct.

I have no idea why it didn't work when I first tried this yesterday when I 
first hooked up the USB speakers.

Reply via email to