Lines Matching refs:virtual
49 virtual ~AudioStreamOut() = 0;
52 virtual uint32_t sampleRate() const = 0;
55 virtual size_t bufferSize() const = 0;
60 virtual uint32_t channels() const = 0;
66 virtual int format() const = 0;
77 virtual uint32_t latency() const = 0;
86 virtual status_t setVolume(float left, float right) = 0;
89 virtual ssize_t write(const void* buffer, size_t bytes) = 0;
95 virtual status_t standby() = 0;
98 virtual status_t dump(int fd, const Vector<String16>& args) = 0;
106 virtual status_t setParameters(const String8& keyValuePairs) = 0;
107 virtual String8 getParameters(const String8& keys) = 0;
111 virtual status_t getRenderPosition(uint32_t *dspFrames) = 0;
117 virtual status_t getNextWriteTimestamp(int64_t *timestamp);
122 virtual status_t getPresentationPosition(uint64_t *frames, struct timespec *timestamp);
133 virtual ~AudioStreamIn() = 0;
136 virtual uint32_t sampleRate() const = 0;
139 virtual size_t bufferSize() const = 0;
142 virtual uint32_t channels() const = 0;
148 virtual int format() const = 0;
158 virtual status_t setGain(float gain) = 0;
161 virtual ssize_t read(void* buffer, ssize_t bytes) = 0;
164 virtual status_t dump(int fd, const Vector<String16>& args) = 0;
170 virtual status_t standby() = 0;
178 virtual status_t setParameters(const String8& keyValuePairs) = 0;
179 virtual String8 getParameters(const String8& keys) = 0;
186 virtual unsigned int getInputFramesLost() const = 0;
188 virtual status_t addAudioEffect(effect_handle_t effect) = 0;
189 virtual status_t removeAudioEffect(effect_handle_t effect) = 0;
207 virtual ~AudioHardwareInterface() {} in ~AudioHardwareInterface()
213 virtual status_t initCheck() = 0;
216 virtual status_t setVoiceVolume(float volume) = 0;
223 virtual status_t setMasterVolume(float volume) = 0;
231 virtual status_t getMasterVolume(float *volume) = 0;
238 virtual status_t setMode(int mode) = 0;
241 virtual status_t setMicMute(bool state) = 0;
242 virtual status_t getMicMute(bool* state) = 0;
245 virtual status_t setParameters(const String8& keyValuePairs) = 0;
246 virtual String8 getParameters(const String8& keys) = 0;
250 virtual size_t getInputBufferSize(uint32_t sampleRate, int format, int channelCount) = 0;
253 virtual AudioStreamOut* openOutputStream(
259 virtual AudioStreamOut* openOutputStreamWithFlags(
266 virtual void closeOutputStream(AudioStreamOut* out) = 0;
269 virtual AudioStreamIn* openInputStream(
276 virtual void closeInputStream(AudioStreamIn* in) = 0;
279 virtual status_t dumpState(int fd, const Vector<String16>& args) = 0;
281 virtual status_t setMasterMute(bool muted) = 0;
285 virtual int createAudioPatch(unsigned int num_sources,
291 virtual int releaseAudioPatch(audio_patch_handle_t handle) = 0;
293 virtual int getAudioPort(struct audio_port *port) = 0;
295 virtual int setAudioPortConfig(const struct audio_port_config *config) = 0;
299 virtual status_t dump(int fd, const Vector<String16>& args) = 0;