From 142f519aa1acd5804d111e60d100f170fed28405 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Tue, 25 Mar 2014 17:44:59 -0700 Subject: Use symbol AUDIO_IO_HANDLE_NONE from Change-Id: Id6b1aa17558eb73e17f22b8eab6cd02e00a96dff --- include/media/AudioEffect.h | 6 +++--- include/media/AudioTrack.h | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/media/AudioEffect.h b/include/media/AudioEffect.h index 01dcbb2..f98002d 100644 --- a/include/media/AudioEffect.h +++ b/include/media/AudioEffect.h @@ -231,7 +231,7 @@ public: effect_callback_t cbf = NULL, void* user = NULL, int sessionId = AUDIO_SESSION_OUTPUT_MIX, - audio_io_handle_t io = 0 + audio_io_handle_t io = AUDIO_IO_HANDLE_NONE ); /* Constructor. @@ -243,7 +243,7 @@ public: effect_callback_t cbf = NULL, void* user = NULL, int sessionId = AUDIO_SESSION_OUTPUT_MIX, - audio_io_handle_t io = 0 + audio_io_handle_t io = AUDIO_IO_HANDLE_NONE ); /* Terminates the AudioEffect and unregisters it from AudioFlinger. @@ -265,7 +265,7 @@ public: effect_callback_t cbf = NULL, void* user = NULL, int sessionId = AUDIO_SESSION_OUTPUT_MIX, - audio_io_handle_t io = 0 + audio_io_handle_t io = AUDIO_IO_HANDLE_NONE ); /* Result of constructing the AudioEffect. This must be checked diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h index d3168ba..3dadf52 100644 --- a/include/media/AudioTrack.h +++ b/include/media/AudioTrack.h @@ -450,7 +450,8 @@ public: * none. * * Returned value: - * handle on audio hardware output + * handle on audio hardware output, or AUDIO_IO_HANDLE_NONE if the + * track needed to be re-created but that failed */ audio_io_handle_t getOutput() const; -- cgit v1.1