Changeset 60941 in vbox for trunk/src/VBox/Devices/Audio/AudioMixer.cpp
- Timestamp:
- May 12, 2016 1:12:20 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixer.cpp
r60934 r60941 312 312 } 313 313 314 LogFlowFunc((" Sink=%s,Cmd=%ld, rc=%Rrc\n", pSink->pszName, enmCmd, rc));314 LogFlowFunc(("%s: enmCmd=%ld, rc=%Rrc\n", pSink->pszName, enmCmd, rc)); 315 315 return rc; 316 316 } … … 342 342 343 343 RTMemFree(pSink); 344 } 345 346 /** 347 * Returns the sink's mixing direction. 348 * 349 * @returns Mixing direction. 350 * @param pSink Sink to return direction for. 351 * 352 * @remark 353 */ 354 AUDMIXSINKDIR AudioMixerSinkGetDir(PAUDMIXSINK pSink) 355 { 356 AssertPtrReturn(pSink, AUDMIXSINKDIR_UNKNOWN); 357 return pSink->enmDir; 344 358 } 345 359 … … 519 533 void AudioMixerSinkTimerUpdate(PAUDMIXSINK pSink, uint64_t cTicksPerSec, uint64_t cTicksElapsed, uint32_t *pcbData) 520 534 { 535 AssertPtrReturnVoid(pSink); 536 /* pcbData is optional. */ 537 521 538 uint32_t cSamplesMin = (uint32_t)((2 * cTicksElapsed * pSink->PCMProps.uHz + cTicksPerSec) / cTicksPerSec / 2); 522 539 uint32_t cbSamplesMin = cSamplesMin << pSink->PCMProps.cShift;
Note:
See TracChangeset
for help on using the changeset viewer.