summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Sparks <davidsparks@android.com>2009-05-19 13:51:40 -0700
committerDave Sparks <davidsparks@android.com>2009-05-19 13:51:40 -0700
commitc61651ca12e73e153f2bfcd43d096c261598cad3 (patch)
tree7397abf3077462922c12229a2eaa48b0ca9d308b
parent049ae36fcb9e9af8ee5e42284b9320e64b576ebd (diff)
downloadplatform_hardware_libhardware_legacy-c61651ca12e73e153f2bfcd43d096c261598cad3.tar.gz
platform_hardware_libhardware_legacy-c61651ca12e73e153f2bfcd43d096c261598cad3.tar.bz2
platform_hardware_libhardware_legacy-c61651ca12e73e153f2bfcd43d096c261598cad3.zip
Add input source parameter to openInputStream factory function.
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
-rw-r--r--include/hardware_legacy/AudioHardwareInterface.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/hardware_legacy/AudioHardwareInterface.h b/include/hardware_legacy/AudioHardwareInterface.h
index 0aa3a95..9610264 100644
--- a/include/hardware_legacy/AudioHardwareInterface.h
+++ b/include/hardware_legacy/AudioHardwareInterface.h
@@ -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,