- Timestamp:
- Sep 5, 2016 1:03:53 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 110489
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp
r63711 r63714 84 84 typedef FNDIRECTSOUNDCAPTUREENUMERATEW *PFNDIRECTSOUNDCAPTUREENUMERATEW; 85 85 86 #ifdef VBOX_WITH_AUDIO_ CALLBACKS86 #ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS 87 87 # define VBOX_DSOUND_MAX_EVENTS 3 88 88 … … 93 93 DSOUNDEVENT_OUTPUT, 94 94 } DSOUNDEVENT; 95 #endif /* VBOX_WITH_AUDIO_ CALLBACKS */95 #endif /* VBOX_WITH_AUDIO_DEVICE_CALLBACKS */ 96 96 97 97 typedef struct DSOUNDHOSTCFG … … 152 152 /** Whether this backend supports any audio output. */ 153 153 bool fEnabledOut; 154 #ifdef VBOX_WITH_AUDIO_ CALLBACKS154 #ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS 155 155 /** Pointer to the audio connector interface of the driver/device above us. */ 156 156 PPDMIAUDIOCONNECTOR pUpIAudioConnector; … … 207 207 static void dsoundDeviceRemove(PDSOUNDDEV pDev); 208 208 static int dsoundDevicesEnumerate(PDRVHOSTDSOUND pThis, PPDMAUDIOBACKENDCFG pCfg); 209 #ifdef VBOX_WITH_AUDIO_ CALLBACKS209 #ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS 210 210 static int dsoundNotifyThread(PDRVHOSTDSOUND pThis, bool fShutdown); 211 211 #endif … … 528 528 if (SUCCEEDED(hr)) 529 529 { 530 #ifdef VBOX_WITH_AUDIO_ CALLBACKS530 #ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS 531 531 if (pThis->aEvents[DSOUNDEVENT_OUTPUT] != NULL) 532 532 { … … 607 607 */ 608 608 bd.dwFlags = DSBCAPS_GLOBALFOCUS | DSBCAPS_GETCURRENTPOSITION2 | DSBCAPS_LOCSOFTWARE; 609 #ifdef VBOX_WITH_AUDIO_ CALLBACKS609 #ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS 610 610 bd.dwFlags |= DSBCAPS_CTRLPOSITIONNOTIFY; 611 611 #endif … … 684 684 DSLOG(("DSound: cMaxSamplesInBuffer=%RU32\n", pDSoundStream->cMaxSamplesInBuffer)); 685 685 686 #ifdef VBOX_WITH_AUDIO_ CALLBACKS686 #ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS 687 687 /* 688 688 * Install notification. … … 730 730 hr = IDirectSoundBuffer8_Play(pDSoundStream->pDSB, 0, 0, 0); 731 731 732 #endif /* VBOX_WITH_AUDIO_ CALLBACKS */732 #endif /* VBOX_WITH_AUDIO_DEVICE_CALLBACKS */ 733 733 734 734 } while (0); … … 1216 1216 { 1217 1217 DWORD fFlags = 0; 1218 #ifndef VBOX_WITH_AUDIO_ CALLBACKS1218 #ifndef VBOX_WITH_AUDIO_DEVICE_CALLBACKS 1219 1219 fFlags |= DSCBSTART_LOOPING; 1220 1220 #endif … … 1412 1412 if (RT_SUCCESS(rc)) 1413 1413 { 1414 #ifdef VBOX_WITH_AUDIO_ CALLBACKS1414 #ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS 1415 1415 if ( pThis->fEnabledOut != RT_BOOL(cbCtx.cDevOut) 1416 1416 || pThis->fEnabledIn != RT_BOOL(cbCtx.cDevIn)) … … 1639 1639 1640 1640 DWORD fFlags = 0; 1641 #ifndef VBOX_WITH_AUDIO_ CALLBACKS1641 #ifndef VBOX_WITH_AUDIO_DEVICE_CALLBACKS 1642 1642 fFlags |= DSCBSTART_LOOPING; 1643 1643 #endif … … 1933 1933 } 1934 1934 1935 #ifdef VBOX_WITH_AUDIO_ CALLBACKS1935 #ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS 1936 1936 1937 1937 static int dsoundNotifyThread(PDRVHOSTDSOUND pThis, bool fShutdown) … … 2042 2042 } 2043 2043 2044 #endif /* VBOX_WITH_AUDIO_ CALLBACKS */2044 #endif /* VBOX_WITH_AUDIO_DEVICE_CALLBACKS */ 2045 2045 2046 2046 … … 2054 2054 LogFlowFuncEnter(); 2055 2055 2056 #ifdef VBOX_WITH_AUDIO_ CALLBACKS2056 #ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS 2057 2057 int rc = dsoundNotifyThread(pThis, true /* fShutdown */); 2058 2058 AssertRC(rc); … … 2094 2094 IDirectSound_Release(pDirectSound); 2095 2095 2096 #ifdef VBOX_WITH_AUDIO_ CALLBACKS2096 #ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS 2097 2097 /* Create notification event. */ 2098 2098 pThis->aEvents[DSOUNDEVENT_NOTIFY] = CreateEvent(NULL /* Security attribute */, … … 2369 2369 PDMAUDIO_IHOSTAUDIO_CALLBACKS(drvHostDSound); 2370 2370 2371 #ifdef VBOX_WITH_AUDIO_ CALLBACKS2371 #ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS 2372 2372 /* 2373 2373 * Get the IAudioConnector interface of the above driver/device. … … 2389 2389 pThis->fEnabledIn = false; 2390 2390 pThis->fEnabledOut = false; 2391 #ifdef VBOX_WITH_AUDIO_ CALLBACKS2391 #ifdef VBOX_WITH_AUDIO_DEVICE_CALLBACKS 2392 2392 pThis->fStopped = false; 2393 2393 pThis->fShutdown = false;
Note:
See TracChangeset
for help on using the changeset viewer.