| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef TALK_MEDIA_DEVICES_LINUXDEVICEMANAGER_H_ | 28 #ifndef TALK_MEDIA_DEVICES_LINUXDEVICEMANAGER_H_ |
| 29 #define TALK_MEDIA_DEVICES_LINUXDEVICEMANAGER_H_ | 29 #define TALK_MEDIA_DEVICES_LINUXDEVICEMANAGER_H_ |
| 30 | 30 |
| 31 #include <string> | 31 #include <string> |
| 32 #include <vector> | 32 #include <vector> |
| 33 | 33 |
| 34 #include "talk/media/devices/devicemanager.h" | 34 #include "talk/media/devices/devicemanager.h" |
| 35 #include "webrtc/sound/soundsystemfactory.h" | |
| 36 #include "webrtc/base/sigslot.h" | 35 #include "webrtc/base/sigslot.h" |
| 37 #include "webrtc/base/stringencode.h" | 36 #include "webrtc/base/stringencode.h" |
| 37 #include "webrtc/sound/soundsystemfactory.h" |
| 38 | 38 |
| 39 namespace cricket { | 39 namespace cricket { |
| 40 | 40 |
| 41 class LinuxDeviceManager : public DeviceManager { | 41 class LinuxDeviceManager : public DeviceManager { |
| 42 public: | 42 public: |
| 43 LinuxDeviceManager(); | 43 LinuxDeviceManager(); |
| 44 virtual ~LinuxDeviceManager(); | 44 virtual ~LinuxDeviceManager(); |
| 45 | 45 |
| 46 virtual bool GetVideoCaptureDevices(std::vector<Device>* devs); | 46 virtual bool GetVideoCaptureDevices(std::vector<Device>* devs); |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 virtual bool GetAudioDevices(bool input, std::vector<Device>* devs); | 49 virtual bool GetAudioDevices(bool input, std::vector<Device>* devs); |
| 50 rtc::SoundSystemHandle sound_system_; | 50 rtc::SoundSystemHandle sound_system_; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace cricket | 53 } // namespace cricket |
| 54 | 54 |
| 55 #endif // TALK_MEDIA_DEVICES_LINUXDEVICEMANAGER_H_ | 55 #endif // TALK_MEDIA_DEVICES_LINUXDEVICEMANAGER_H_ |
| OLD | NEW |