OSDN Git Service

Add input source parameter to openInputStream factory function.
authorDave Sparks <davidsparks@android.com>
Tue, 19 May 2009 20:51:40 +0000 (13:51 -0700)
committerDave Sparks <davidsparks@android.com>
Tue, 19 May 2009 20:51:40 +0000 (13:51 -0700)
This change lays the foundation for recording from different sources.
A series of changes will follow that implement the factory function
for the various hardware configurations. Finally, the deprecated
function will be removed.
Bug 1846343

include/hardware_legacy/AudioHardwareInterface.h

index 0aa3a95..9610264 100644 (file)
@@ -208,6 +208,20 @@ public:
 
     /** This method creates and opens the audio hardware input stream */
     virtual AudioStreamIn* openInputStream(
+                                int inputSource,
+                                int format,
+                                int channelCount,
+                                uint32_t sampleRate,
+                                status_t *status,
+                                AudioSystem::audio_in_acoustics acoustics)
+    {
+        // TODO: Remove temporary implementation after all h/w libs are updated
+        return openInputStream(format, channelCount, sampleRate, status, acoustics);
+    }
+
+    /** This method creates and opens the audio hardware input stream */
+    /** DEPRECATED */
+    virtual AudioStreamIn* openInputStream(
                                 int format,
                                 int channelCount,
                                 uint32_t sampleRate,