Changeset 56023 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- May 22, 2015 9:41:16 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostPulseAudio.cpp
r55920 r56023 85 85 PDMAUDIOHSTSTRMIN In; 86 86 PDMAUDIOHSTSTRMOUT Out; 87 } hw;87 }; 88 88 /** Pointer to driver instance. */ 89 89 PDRVHOSTPULSEAUDIO pDrv; … … 556 556 uint32_t *pcSamples) 557 557 { 558 NOREF(pInterface);558 AssertPtrReturn(pInterface, VERR_INVALID_POINTER); 559 559 AssertPtrReturn(pHstStrmOut, VERR_INVALID_POINTER); 560 560 AssertPtrReturn(pCfg, VERR_INVALID_POINTER); 561 561 /* pcSamples is optional. */ 562 562 563 PDRVHOSTPULSEAUDIO pDrv = PDMIHOSTAUDIO_2_DRVHOSTPULSEAUDIO(pInterface); 563 564 PPULSEAUDIOSTREAM pThisStrmOut = (PPULSEAUDIOSTREAM)pHstStrmOut; 564 565 … … 613 614 *pcSamples = cSamples; 614 615 616 /* Save pointer to driver instance. */ 617 pThisStrmOut->pDrv = pDrv; 618 615 619 LogFunc(("cbBuf=%RU32, cSamples=%RU32\n", cbBuf, cSamples)); 616 620 } … … 638 642 uint32_t *pcSamples) 639 643 { 640 NOREF(pInterface);644 AssertPtrReturn(pInterface, VERR_INVALID_POINTER); 641 645 AssertPtrReturn(pHstStrmIn, VERR_INVALID_POINTER); 642 646 AssertPtrReturn(pCfg, VERR_INVALID_POINTER); 643 647 /* pcSamples is optional. */ 644 648 649 PDRVHOSTPULSEAUDIO pDrv = PDMIHOSTAUDIO_2_DRVHOSTPULSEAUDIO(pInterface); 645 650 PPULSEAUDIOSTREAM pThisStrmIn = (PPULSEAUDIOSTREAM)pHstStrmIn; 646 651 … … 683 688 if (pcSamples) 684 689 *pcSamples = cSamples; 690 691 /* Save pointer to driver instance. */ 692 pThisStrmIn->pDrv = pDrv; 685 693 686 694 pThisStrmIn->pu8PeekBuf = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.