VirtualBox

Ignore:
Timestamp:
Jan 7, 2016 11:57:56 AM (9 years ago)
Author:
vboxsync
Message:

Audio: Don't crash if backend is unable to initialize (bugref:8180).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/AudioMixer.cpp

    r58600 r59275  
    77
    88/*
    9  * Copyright (C) 2014-2015 Oracle Corporation
     9 * Copyright (C) 2014-2016 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    250250}
    251251
     252int AudioMixerGetDeviceFormat(PAUDIOMIXER pMixer, PPDMAUDIOSTREAMCFG pCfg)
     253{
     254    AssertPtrReturn(pMixer, VERR_INVALID_POINTER);
     255    AssertPtrReturn(pCfg, VERR_INVALID_POINTER);
     256
     257    /** @todo Perform a deep copy, if needed. */
     258    *pCfg = pMixer->devFmt;
     259
     260    return VINF_SUCCESS;
     261}
     262
    252263uint32_t AudioMixerGetStreamCount(PAUDIOMIXER pMixer)
    253264{
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