Changeset 54230 in vbox for trunk/src/VBox/Devices/Audio/DrvHostOSSAudio.cpp
- Timestamp:
- Feb 17, 2015 1:13:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostOSSAudio.cpp
r53624 r54230 5 5 6 6 /* 7 * Copyright (C) 2014 Oracle Corporation7 * Copyright (C) 2014-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 766 766 } 767 767 768 static DECLCALLBACK(bool) drvHostOSSAudioIsEnabled(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir) 769 { 770 NOREF(pInterface); 771 NOREF(enmDir); 772 return true; /* Always all enabled. */ 773 } 774 768 775 static DECLCALLBACK(int) drvHostOSSAudioPlayOut(PPDMIHOSTAUDIO pInterface, PPDMAUDIOHSTSTRMOUT pHstStrmOut, 769 776 uint32_t *pcSamplesPlayed) … … 933 940 * Init the static parts. 934 941 */ 935 pThis->pDrvIns 942 pThis->pDrvIns = pDrvIns; 936 943 /* 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); 948 947 949 948 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.