Having switched from OSS to ALSA, I've made some progress, but I'm still not 
getting sound.  By way of background, I'm doing my development and testing on a 
MacBook Air, running macOS High Sierra (10.13.6).  As I recently posted on the 
ALSA list:

> I've successfully built a VirtualBox instance, based on Ubuntu, for use under 
> Vagrant.  Now I'd like to set up ALSA to use the host's audio output system.  
> Making things more complicated, the host could be running Linux, macOS, 
> Windows, or ???

I reworked my Vagrantfile to incorporate some ideas from Christoph Neumann's 
vagrant-audio Vagrantfile (in 
https://github.com/christoph-neumann/vagrant-audio).  For details, see this 
gist:

 https://gist.github.com/RichMorin/dc9138962c19c205697bea23cce5134c

After building the VM, I can SSH into it via `vagrant ssh`.

If I then run `speaker-test`, the program prints out some promising text and 
then hangs:

 vagrant@vagrant:~$ speaker-test
 speaker-test 1.1.8

 Playback device is default
 Stream parameters are 48000Hz, S16_LE, 1 channels
 Using 16 octaves of pink noise
 Rate set to 48000Hz (requested 48000Hz)
 Buffer size range from 69 to 17832
 Period size range from 34 to 8917
 Using max buffer size 17832
 Periods = 4
 was set period_size = 4458
 was set buffer_size = 17832
  0 - Front Left

And, if I do `aplay -L`, I get:

 vagrant@vagrant:~$ aplay -L
 null
   Discard all samples (playback) or generate zero samples (capture)
 default
 sysdefault:CARD=Intel
   HDA Intel, STAC9221 A1 Analog
   Default Audio Device
 front:CARD=Intel,DEV=0
   HDA Intel, STAC9221 A1 Analog
   Front speakers
 ...

Helpful clues, comments, and suggestions are solicited.

-r

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/84D2FD0F-EE3E-4082-AB60-30C84DAFDFF4%40cfcl.com.

Reply via email to