Changeset 229479 in webkit
- Timestamp:
- Mar 9, 2018 1:14:58 PM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r229475 r229479 1 2018-03-09 Youenn Fablet <youenn@apple.com> 2 3 Cannot change audio input source device 4 https://bugs.webkit.org/show_bug.cgi?id=175975 5 <rdar://problem/34073589> 6 7 Reviewed by Eric Carlson. 8 9 Covered by manually testing https://webrtc.github.io/samples/src/content/devices/input-output/ with a USB web cam. 10 11 * platform/mediastream/mac/CoreAudioCaptureSource.cpp: 12 (WebCore::CoreAudioSharedUnit::setCaptureDeviceID): 13 (WebCore::CoreAudioCaptureSource::CoreAudioCaptureSource): 14 1 15 2018-03-09 Jer Noble <jer.noble@apple.com> 2 16 -
trunk/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.cpp
r228325 r229479 103 103 bool hasAudioUnit() const { return m_ioUnit; } 104 104 105 void setCaptureDeviceID(uint32_t); 106 105 107 private: 106 108 OSStatus configureSpeakerProc(); … … 194 196 return &client == &item.get(); 195 197 }); 198 } 199 200 void CoreAudioSharedUnit::setCaptureDeviceID(uint32_t captureDeviceID) 201 { 202 #if PLATFORM(MAC) 203 if (m_captureDeviceID == captureDeviceID) 204 return; 205 206 m_captureDeviceID = captureDeviceID; 207 reconfigureAudioUnit(); 208 #else 209 UNUSED_PARAM(captureDeviceID); 210 #endif 196 211 } 197 212 … … 763 778 { 764 779 auto& unit = CoreAudioSharedUnit::singleton(); 780 unit.setCaptureDeviceID(m_captureDeviceID); 765 781 766 782 initializeEchoCancellation(unit.enableEchoCancellation());
Note: See TracChangeset
for help on using the changeset viewer.