19 #ifndef ANBOX_SDK_AUDIO_PROCESSOR_H_
20 #define ANBOX_SDK_AUDIO_PROCESSOR_H_
51 [[deprecated(
"Replaced by AudioProcessor::write_data")]]
64 virtual ssize_t
write_data(
const uint8_t* data,
size_t size) {
80 virtual ssize_t
read_data(uint8_t* data,
size_t size) {
AudioProcessor allows processing audio data from the Android container and perform audio processing l...
virtual ssize_t write_data(const uint8_t *data, size_t size)
Write a chunk of audio data.
virtual ~AudioProcessor()=default
AudioProcessor(const AudioProcessor &)=delete
virtual size_t process_data(const uint8_t *data, size_t size)=0
Process a chunk of audio data.
virtual ssize_t read_data(uint8_t *data, size_t size)
Read a chunk of audio data.
AudioProcessor & operator=(const AudioProcessor &)=delete
virtual bool need_silence_on_standby() const
Produce a silent audio stream on need while the audio output stream goes into the standby state.
virtual int activate(AnboxAudioStreamType type)
Notify the platform when an audio stream is in activation mode.
virtual int standby(AnboxAudioStreamType type)
Notify the platform when an audio stream is in standby mode.
AnboxAudioStreamType
AnboxAudioStreamType describes the audio stream type.