void *service) :
mServiceOps(serviceOps) , mService(service) {}
- virtual audio_io_handle_t openOutput(uint32_t *pDevices,
+ virtual audio_module_handle_t loadHwModule(const char *moduleName);
+
+ virtual audio_io_handle_t openOutput(audio_module_handle_t module,
+ audio_devices_t *pDevices,
uint32_t *pSamplingRate,
- uint32_t *pFormat,
- uint32_t *pChannels,
+ audio_format_t *pFormat,
+ audio_channel_mask_t *pChannelMask,
uint32_t *pLatencyMs,
- AudioSystem::output_flags flags);
+ audio_output_flags_t flags,
+ const audio_offload_info_t *offloadInfo);
virtual audio_io_handle_t openDuplicateOutput(audio_io_handle_t output1,
audio_io_handle_t output2);
virtual status_t closeOutput(audio_io_handle_t output);
virtual status_t suspendOutput(audio_io_handle_t output);
virtual status_t restoreOutput(audio_io_handle_t output);
- virtual audio_io_handle_t openInput(uint32_t *pDevices,
+ virtual audio_io_handle_t openInput(audio_module_handle_t module,
+ audio_devices_t *pDevices,
uint32_t *pSamplingRate,
- uint32_t *pFormat,
- uint32_t *pChannels,
- uint32_t acoustics);
+ audio_format_t *pFormat,
+ audio_channel_mask_t *pChannelMask);
virtual status_t closeInput(audio_io_handle_t input);
- virtual status_t setStreamOutput(AudioSystem::stream_type stream, audio_io_handle_t output);
+ virtual status_t invalidateStream(AudioSystem::stream_type stream);
virtual status_t moveEffects(int session,
audio_io_handle_t srcOutput,
audio_io_handle_t dstOutput);