Changeset 60934 in vbox for trunk/src/VBox/Devices/Audio/AudioMixer.cpp
- Timestamp:
- May 11, 2016 9:13:40 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixer.cpp
r60925 r60934 51 51 static int audioMixerSinkUpdateVolume(PAUDMIXSINK pSink, const PPDMAUDIOVOLUME pVolMaster); 52 52 static void audioMixerSinkRemoveStreamInternal(PAUDMIXSINK pSink, PAUDMIXSTREAM pStream); 53 static int audioMixerSinkUpdateInternal(PAUDMIXSINK pSink); 53 54 54 55 static void audioMixerStreamDestroyInternal(PAUDMIXSTREAM pStream); … … 516 517 } 517 518 518 int AudioMixerSinkUpdate(PAUDMIXSINK pSink) 519 void AudioMixerSinkTimerUpdate(PAUDMIXSINK pSink, uint64_t cTicksPerSec, uint64_t cTicksElapsed, uint32_t *pcbData) 520 { 521 uint32_t cSamplesMin = (uint32_t)((2 * cTicksElapsed * pSink->PCMProps.uHz + cTicksPerSec) / cTicksPerSec / 2); 522 uint32_t cbSamplesMin = cSamplesMin << pSink->PCMProps.cShift; 523 524 LogFlowFunc(("%s: cbSamplesMin=%RU32\n", pSink->pszName, cbSamplesMin)); 525 526 audioMixerSinkUpdateInternal(pSink); 527 528 if (pcbData) 529 *pcbData = cbSamplesMin; 530 } 531 532 static int audioMixerSinkUpdateInternal(PAUDMIXSINK pSink) 519 533 { 520 534 AssertPtrReturn(pSink, VERR_INVALID_POINTER); … … 532 546 || cSamplesLive) 533 547 { 534 Log3Func(("cbIn=%RU32, cbOut=%RU32, cSamplesLive=%RU32, rc2=%Rrc\n", cbIn, cbOut, cSamplesLive, rc2)); 548 Log3Func(("%s: cbIn=%RU32, cbOut=%RU32, cSamplesLive=%RU32, rc2=%Rrc\n", 549 pSink->pszName, cbIn, cbOut, cSamplesLive, rc2)); 535 550 } 536 551 #endif … … 551 566 552 567 return VINF_SUCCESS; 568 } 569 570 int AudioMixerSinkUpdate(PAUDMIXSINK pSink) 571 { 572 return audioMixerSinkUpdateInternal(pSink); 553 573 } 554 574
Note:
See TracChangeset
for help on using the changeset viewer.