VirtualBox

Changeset 53394 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 25, 2014 11:22:01 AM (10 years ago)
Author:
vboxsync
Message:

Devices/Audio: DirectSound: better logging, fix for audio device id (regression from latest changes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/dsoundaudio.c

    r53393 r53394  
    108108    LPDIRECTSOUNDBUFFER dsound_primary_buffer;
    109109    audsettings_t settings;
    110     LPCGUID devguidp;
    111110    LPCGUID devguidp_capture;
    112111} dsound;
     
    472471        hr = IDirectSoundCapture_Initialize (s->dsound_capture, s->devguidp_capture);
    473472        if (FAILED (hr)) {
    474             DSLOGREL(("DSound: DirectSoundCapture initialize %Rhrc\n", hr));
     473            if (hr == DSERR_NODRIVER) {
     474                DSLOGREL(("DSound: DirectSoundCapture not available\n"));
     475            }
     476            else {
     477                DSLOGREL(("DSound: DirectSoundCapture initialize %Rhrc\n", hr));
     478            }
    475479            dsoundCaptureInterfaceRelease (s);
    476480        }
     
    12991303            LogRel(("DSound: Could not parse DirectSound input device GUID\n"));
    13001304        }
    1301         s->devguidp = (LPCGUID)&devguid;
     1305        s->devguidp_capture = (LPCGUID)&devguid;
    13021306    } else {
    1303         s->devguidp = NULL;
     1307        s->devguidp_capture = NULL;
    13041308    }
    13051309
Note: See TracChangeset for help on using the changeset viewer.

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