VirtualBox

Changes between Version 4 and Version 5 of AudioDebug


Ignore:
Timestamp:
Sep 25, 2017 9:17:42 AM (7 years ago)
Author:
pentagonik
Comment:

More stuff for 5.2 (.WAV file dumping, diagnosis).

Legend:

Unmodified
Added
Removed
Modified
  • AudioDebug

    v4 v5  
    11= Investigating audio problems =
     2
     3== Overview ==
     4
     5To pinpoint the issue further, it first must be determined if the audio problems are on the guest or on the host side.
     6For the host side there are a variety of so-called host audio drivers (backends) which are needed in order to support
     7the 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
     14Dumping guest audio output as .WAV (wave) files to the host is available since '''!VirtualBox 5.2'''.
     15For older !VirtualBox versions an instrumented (debug) build must be used (will be given on request).
     16
     17To 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{{{
     22VBoxManage setextradata <Name-of-VM> "VBoxInternal2/Audio/Debug/Enabled" "true"
     23}}}
     24 3. Start the affected VM again.
     25
     26Now, when performing any audio output on the guest (playback), there will be separate .WAV files created in the host's temporary directory.
     27
     28For Windows hosts this by default is '''C:\Windows\Temp''' or '''C:\Users\<username>\AppData\Local\Temp'''.
     29For Linux / Solaris / MacOS hosts this by default is '''/tmp/'''. When in doubt, have a look at the '''$TMP''' or '''$TMPDIR''' environment variables respectively.
     30
     31The 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
    240
    341== Collecting information from the host ==
    442
    543As always when it comes to diagnosing problems with !VirtualBox the appropriate VBox.log is useful to have. To gather more verbose information about the actual audio state, please do the following:
    6 
    7 '''Tip of the day''': Best is to copy & paste the following commands to avoid typing errors.
    844
    945 1. On '''Windows'''
     
    2359}}}
    2460  * Start the !VirtualBox Manager.
    25  2. On Linux/OS X/Solaris, stop the !VirtualBox manager and restart it by running the following from a terminal:
     61 2. On '''Linux/OS X/Solaris''', stop the !VirtualBox manager and restart it by running the following from a terminal:
    2662{{{
    2763VBOX_RELEASE_LOG=drv_host_audio.e.l.l2.l3.f+drv_audio.e.l.l2.l3.f+audio_mixer.e.l.l2.l3.f+dev_hda_codec.e.l.l2.l3.f+dev_hda.e.l.l2.l3.f+dev_ac97.e.l.l2.l3.f VirtualBox

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette