VirtualBox

Ignore:
Timestamp:
Feb 17, 2015 1:13:02 PM (10 years ago)
Author:
vboxsync
Message:

PDM/Audio: Update.

File:
1 edited

Legend:

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

    r53624 r54230  
    55
    66/*
    7  * Copyright (C) 2014 Oracle Corporation
     7 * Copyright (C) 2014-2015 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    766766}
    767767
     768static DECLCALLBACK(bool) drvHostOSSAudioIsEnabled(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
     769{
     770    NOREF(pInterface);
     771    NOREF(enmDir);
     772    return true; /* Always all enabled. */
     773}
     774
    768775static DECLCALLBACK(int) drvHostOSSAudioPlayOut(PPDMIHOSTAUDIO pInterface, PPDMAUDIOHSTSTRMOUT pHstStrmOut,
    769776                                                uint32_t *pcSamplesPlayed)
     
    933940     * Init the static parts.
    934941     */
    935     pThis->pDrvIns                    = pDrvIns;
     942    pThis->pDrvIns                   = pDrvIns;
    936943    /* IBase */
    937     pDrvIns->IBase.pfnQueryInterface  = drvHostOSSAudioQueryInterface;
    938     pThis->IHostAudioR3.pfnInitIn     = drvHostOSSAudioInitIn;
    939     pThis->IHostAudioR3.pfnInitOut    = drvHostOSSAudioInitOut;
    940     pThis->IHostAudioR3.pfnControlIn  = drvHostOSSAudioControlIn;
    941     pThis->IHostAudioR3.pfnControlOut = drvHostOSSAudioControlOut;
    942     pThis->IHostAudioR3.pfnFiniIn     = drvHostOSSAudioFiniIn;
    943     pThis->IHostAudioR3.pfnFiniOut    = drvHostOSSAudioFiniOut;
    944     pThis->IHostAudioR3.pfnCaptureIn  = drvHostOSSAudioCaptureIn;
    945     pThis->IHostAudioR3.pfnPlayOut    = drvHostOSSAudioPlayOut;
    946     pThis->IHostAudioR3.pfnGetConf    = drvHostOSSAudioGetConf;
    947     pThis->IHostAudioR3.pfnInit       = drvHostOSSAudioInit;
     944    pDrvIns->IBase.pfnQueryInterface = drvHostOSSAudioQueryInterface;
     945    /* IHostAudioR3 */
     946    PDMAUDIO_IHOSTAUDIOR3_CALLBACKS(drvHostOSSAudio);
    948947
    949948    return VINF_SUCCESS;
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