Loading include/media/MmapStreamInterface.h +4 −1 Original line number Diff line number Diff line Loading @@ -107,12 +107,15 @@ class MmapStreamInterface : public virtual RefBase * createMmapBuffer() must be called before calling start() * * \param[in] client a AudioClient struct describing the client starting on this stream. * \param[in] attr audio attributes provided by the client. * \param[out] handle unique handle for this instance. Used with stop(). * \return OK in case of success. * NO_INIT in case of initialization error * INVALID_OPERATION if called out of sequence */ virtual status_t start(const AudioClient& client, audio_port_handle_t *handle) = 0; virtual status_t start(const AudioClient& client, const audio_attributes_t *attr, audio_port_handle_t *handle) = 0; /** * Stop a stream operating in mmap mode. Loading media/libaaudio/src/binding/AAudioBinderClient.h +3 −2 Original line number Diff line number Diff line Loading @@ -99,7 +99,8 @@ public: aaudio_result_t startClient(aaudio_handle_t streamHandle __unused, const android::AudioClient& client __unused, audio_port_handle_t *clientHandle) override { const audio_attributes_t *attr __unused, audio_port_handle_t *clientHandle __unused) override { return AAUDIO_ERROR_UNAVAILABLE; } Loading media/libaaudio/src/binding/AAudioServiceInterface.h +3 −2 Original line number Diff line number Diff line Loading @@ -90,6 +90,7 @@ public: virtual aaudio_result_t startClient(aaudio_handle_t streamHandle, const android::AudioClient& client, const audio_attributes_t *attr, audio_port_handle_t *clientHandle) = 0; virtual aaudio_result_t stopClient(aaudio_handle_t streamHandle, Loading media/libaaudio/src/client/AudioStreamInternal.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -429,13 +429,14 @@ aaudio_result_t AudioStreamInternal::unregisterThread() { } aaudio_result_t AudioStreamInternal::startClient(const android::AudioClient& client, const audio_attributes_t *attr, audio_port_handle_t *portHandle) { ALOGV("%s() called", __func__); if (mServiceStreamHandle == AAUDIO_HANDLE_INVALID) { return AAUDIO_ERROR_INVALID_STATE; } aaudio_result_t result = mServiceInterface.startClient(mServiceStreamHandle, client, portHandle); client, attr, portHandle); ALOGV("%s(%d) returning %d", __func__, *portHandle, result); return result; } Loading media/libaaudio/src/client/AudioStreamInternal.h +1 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,7 @@ public: int64_t calculateReasonableTimeout(); aaudio_result_t startClient(const android::AudioClient& client, const audio_attributes_t *attr, audio_port_handle_t *clientHandle); aaudio_result_t stopClient(audio_port_handle_t clientHandle); Loading Loading
include/media/MmapStreamInterface.h +4 −1 Original line number Diff line number Diff line Loading @@ -107,12 +107,15 @@ class MmapStreamInterface : public virtual RefBase * createMmapBuffer() must be called before calling start() * * \param[in] client a AudioClient struct describing the client starting on this stream. * \param[in] attr audio attributes provided by the client. * \param[out] handle unique handle for this instance. Used with stop(). * \return OK in case of success. * NO_INIT in case of initialization error * INVALID_OPERATION if called out of sequence */ virtual status_t start(const AudioClient& client, audio_port_handle_t *handle) = 0; virtual status_t start(const AudioClient& client, const audio_attributes_t *attr, audio_port_handle_t *handle) = 0; /** * Stop a stream operating in mmap mode. Loading
media/libaaudio/src/binding/AAudioBinderClient.h +3 −2 Original line number Diff line number Diff line Loading @@ -99,7 +99,8 @@ public: aaudio_result_t startClient(aaudio_handle_t streamHandle __unused, const android::AudioClient& client __unused, audio_port_handle_t *clientHandle) override { const audio_attributes_t *attr __unused, audio_port_handle_t *clientHandle __unused) override { return AAUDIO_ERROR_UNAVAILABLE; } Loading
media/libaaudio/src/binding/AAudioServiceInterface.h +3 −2 Original line number Diff line number Diff line Loading @@ -90,6 +90,7 @@ public: virtual aaudio_result_t startClient(aaudio_handle_t streamHandle, const android::AudioClient& client, const audio_attributes_t *attr, audio_port_handle_t *clientHandle) = 0; virtual aaudio_result_t stopClient(aaudio_handle_t streamHandle, Loading
media/libaaudio/src/client/AudioStreamInternal.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -429,13 +429,14 @@ aaudio_result_t AudioStreamInternal::unregisterThread() { } aaudio_result_t AudioStreamInternal::startClient(const android::AudioClient& client, const audio_attributes_t *attr, audio_port_handle_t *portHandle) { ALOGV("%s() called", __func__); if (mServiceStreamHandle == AAUDIO_HANDLE_INVALID) { return AAUDIO_ERROR_INVALID_STATE; } aaudio_result_t result = mServiceInterface.startClient(mServiceStreamHandle, client, portHandle); client, attr, portHandle); ALOGV("%s(%d) returning %d", __func__, *portHandle, result); return result; } Loading
media/libaaudio/src/client/AudioStreamInternal.h +1 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,7 @@ public: int64_t calculateReasonableTimeout(); aaudio_result_t startClient(const android::AudioClient& client, const audio_attributes_t *attr, audio_port_handle_t *clientHandle); aaudio_result_t stopClient(audio_port_handle_t clientHandle); Loading