| 2 | |
| 3 | == Overview == |
| 4 | |
| 5 | To pinpoint the issue further, it first must be determined if the audio problems are on the guest or on the host side. |
| 6 | For the host side there are a variety of so-called host audio drivers (backends) which are needed in order to support |
| 7 | the host operating system playing back and recording audio from / to the guest (VM). |
| 8 | |
| 9 | '''Tip of the day''': Best is to copy & paste the following commands to avoid typing errors. |
| 10 | |
| 11 | |
| 12 | == Dumping audio output == |
| 13 | |
| 14 | Dumping guest audio output as .WAV (wave) files to the host is available since '''!VirtualBox 5.2'''. |
| 15 | For older !VirtualBox versions an instrumented (debug) build must be used (will be given on request). |
| 16 | |
| 17 | To enable dumping guest audio output, do the following: |
| 18 | |
| 19 | 1. Make sure that the affected VM is not running anymore. |
| 20 | 2. Run |
| 21 | {{{ |
| 22 | VBoxManage setextradata <Name-of-VM> "VBoxInternal2/Audio/Debug/Enabled" "true" |
| 23 | }}} |
| 24 | 3. Start the affected VM again. |
| 25 | |
| 26 | Now, when performing any audio output on the guest (playback), there will be separate .WAV files created in the host's temporary directory. |
| 27 | |
| 28 | For Windows hosts this by default is '''C:\Windows\Temp''' or '''C:\Users\<username>\AppData\Local\Temp'''. |
| 29 | For Linux / Solaris / MacOS hosts this by default is '''/tmp/'''. When in doubt, have a look at the '''$TMP''' or '''$TMPDIR''' environment variables respectively. |
| 30 | |
| 31 | The created .WAV files then can be played back with any regular media player on the host, e.g. VLC, MPlayer or Windows Media Player. |
| 32 | |
| 33 | === Diagnosis === |
| 34 | [[br]] |
| 35 | ||= '''Playback in running VM''' =||= '''Dumped file(s)''' =||= '''Diagnosis''' =|| |
| 36 | || Distorted || OK || Host driver (backend) problem || |
| 37 | || OK || Distorted || Host mixing problem || |
| 38 | || Distorted || Distorted || Device emulation problem || |
| 39 | |