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
/** 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,