Loading include/media/AudioEffect.h +6 −6 Original line number Original line Diff line number Diff line Loading @@ -226,8 +226,8 @@ public: AudioEffect(const effect_uuid_t *type, AudioEffect(const effect_uuid_t *type, const effect_uuid_t *uuid = NULL, const effect_uuid_t *uuid = NULL, int32_t priority = 0, int32_t priority = 0, effect_callback_t cbf = 0, effect_callback_t cbf = NULL, void* user = 0, void* user = NULL, int sessionId = 0, int sessionId = 0, audio_io_handle_t io = 0 audio_io_handle_t io = 0 ); ); Loading @@ -238,8 +238,8 @@ public: AudioEffect(const char *typeStr, AudioEffect(const char *typeStr, const char *uuidStr = NULL, const char *uuidStr = NULL, int32_t priority = 0, int32_t priority = 0, effect_callback_t cbf = 0, effect_callback_t cbf = NULL, void* user = 0, void* user = NULL, int sessionId = 0, int sessionId = 0, audio_io_handle_t io = 0 audio_io_handle_t io = 0 ); ); Loading @@ -260,8 +260,8 @@ public: status_t set(const effect_uuid_t *type, status_t set(const effect_uuid_t *type, const effect_uuid_t *uuid = NULL, const effect_uuid_t *uuid = NULL, int32_t priority = 0, int32_t priority = 0, effect_callback_t cbf = 0, effect_callback_t cbf = NULL, void* user = 0, void* user = NULL, int sessionId = 0, int sessionId = 0, audio_io_handle_t io = 0 audio_io_handle_t io = 0 ); ); Loading include/media/AudioRecord.h +4 −4 Original line number Original line Diff line number Diff line Loading @@ -155,8 +155,8 @@ public: uint32_t channelMask = AUDIO_CHANNEL_IN_MONO, uint32_t channelMask = AUDIO_CHANNEL_IN_MONO, int frameCount = 0, int frameCount = 0, uint32_t flags = 0, uint32_t flags = 0, callback_t cbf = 0, callback_t cbf = NULL, void* user = 0, void* user = NULL, int notificationFrames = 0, int notificationFrames = 0, int sessionId = 0); int sessionId = 0); Loading @@ -181,8 +181,8 @@ public: uint32_t channelMask = AUDIO_CHANNEL_IN_MONO, uint32_t channelMask = AUDIO_CHANNEL_IN_MONO, int frameCount = 0, int frameCount = 0, uint32_t flags = 0, uint32_t flags = 0, callback_t cbf = 0, callback_t cbf = NULL, void* user = 0, void* user = NULL, int notificationFrames = 0, int notificationFrames = 0, bool threadCanCallJava = false, bool threadCanCallJava = false, int sessionId = 0); int sessionId = 0); Loading include/media/AudioTrack.h +6 −6 Original line number Original line Diff line number Diff line Loading @@ -148,8 +148,8 @@ public: int channelMask = 0, int channelMask = 0, int frameCount = 0, int frameCount = 0, uint32_t flags = 0, uint32_t flags = 0, callback_t cbf = 0, callback_t cbf = NULL, void* user = 0, void* user = NULL, int notificationFrames = 0, int notificationFrames = 0, int sessionId = 0); int sessionId = 0); Loading Loading @@ -180,8 +180,8 @@ public: int channelMask = 0, int channelMask = 0, const sp<IMemory>& sharedBuffer = 0, const sp<IMemory>& sharedBuffer = 0, uint32_t flags = 0, uint32_t flags = 0, callback_t cbf = 0, callback_t cbf = NULL, void* user = 0, void* user = NULL, int notificationFrames = 0, int notificationFrames = 0, int sessionId = 0); int sessionId = 0); Loading @@ -204,8 +204,8 @@ public: int channelMask = 0, int channelMask = 0, int frameCount = 0, int frameCount = 0, uint32_t flags = 0, uint32_t flags = 0, callback_t cbf = 0, callback_t cbf = NULL, void* user = 0, void* user = NULL, int notificationFrames = 0, int notificationFrames = 0, const sp<IMemory>& sharedBuffer = 0, const sp<IMemory>& sharedBuffer = 0, bool threadCanCallJava = false, bool threadCanCallJava = false, Loading include/media/Visualizer.h +2 −2 Original line number Original line Diff line number Diff line Loading @@ -66,8 +66,8 @@ public: * See AudioEffect constructor for details on parameters. * See AudioEffect constructor for details on parameters. */ */ Visualizer(int32_t priority = 0, Visualizer(int32_t priority = 0, effect_callback_t cbf = 0, effect_callback_t cbf = NULL, void* user = 0, void* user = NULL, int sessionId = 0); int sessionId = 0); ~Visualizer(); ~Visualizer(); Loading media/libmedia/AudioEffect.cpp +4 −4 Original line number Original line Diff line number Diff line Loading @@ -342,7 +342,7 @@ void AudioEffect::binderDied() { { ALOGW("IEffect died"); ALOGW("IEffect died"); mStatus = NO_INIT; mStatus = NO_INIT; if (mCbf) { if (mCbf != NULL) { status_t status = DEAD_OBJECT; status_t status = DEAD_OBJECT; mCbf(EVENT_ERROR, mUserData, &status); mCbf(EVENT_ERROR, mUserData, &status); } } Loading @@ -363,7 +363,7 @@ void AudioEffect::controlStatusChanged(bool controlGranted) mStatus = ALREADY_EXISTS; mStatus = ALREADY_EXISTS; } } } } if (mCbf) { if (mCbf != NULL) { mCbf(EVENT_CONTROL_STATUS_CHANGED, mUserData, &controlGranted); mCbf(EVENT_CONTROL_STATUS_CHANGED, mUserData, &controlGranted); } } } } Loading @@ -373,7 +373,7 @@ void AudioEffect::enableStatusChanged(bool enabled) ALOGV("enableStatusChanged %p enabled %d mCbf %p", this, enabled, mCbf); ALOGV("enableStatusChanged %p enabled %d mCbf %p", this, enabled, mCbf); if (mStatus == ALREADY_EXISTS) { if (mStatus == ALREADY_EXISTS) { mEnabled = enabled; mEnabled = enabled; if (mCbf) { if (mCbf != NULL) { mCbf(EVENT_ENABLE_STATUS_CHANGED, mUserData, &enabled); mCbf(EVENT_ENABLE_STATUS_CHANGED, mUserData, &enabled); } } } } Loading @@ -389,7 +389,7 @@ void AudioEffect::commandExecuted(uint32_t cmdCode, return; return; } } if (mCbf && cmdCode == EFFECT_CMD_SET_PARAM) { if (mCbf != NULL && cmdCode == EFFECT_CMD_SET_PARAM) { effect_param_t *cmd = (effect_param_t *)cmdData; effect_param_t *cmd = (effect_param_t *)cmdData; cmd->status = *(int32_t *)replyData; cmd->status = *(int32_t *)replyData; mCbf(EVENT_PARAMETER_CHANGED, mUserData, cmd); mCbf(EVENT_PARAMETER_CHANGED, mUserData, cmd); Loading Loading
include/media/AudioEffect.h +6 −6 Original line number Original line Diff line number Diff line Loading @@ -226,8 +226,8 @@ public: AudioEffect(const effect_uuid_t *type, AudioEffect(const effect_uuid_t *type, const effect_uuid_t *uuid = NULL, const effect_uuid_t *uuid = NULL, int32_t priority = 0, int32_t priority = 0, effect_callback_t cbf = 0, effect_callback_t cbf = NULL, void* user = 0, void* user = NULL, int sessionId = 0, int sessionId = 0, audio_io_handle_t io = 0 audio_io_handle_t io = 0 ); ); Loading @@ -238,8 +238,8 @@ public: AudioEffect(const char *typeStr, AudioEffect(const char *typeStr, const char *uuidStr = NULL, const char *uuidStr = NULL, int32_t priority = 0, int32_t priority = 0, effect_callback_t cbf = 0, effect_callback_t cbf = NULL, void* user = 0, void* user = NULL, int sessionId = 0, int sessionId = 0, audio_io_handle_t io = 0 audio_io_handle_t io = 0 ); ); Loading @@ -260,8 +260,8 @@ public: status_t set(const effect_uuid_t *type, status_t set(const effect_uuid_t *type, const effect_uuid_t *uuid = NULL, const effect_uuid_t *uuid = NULL, int32_t priority = 0, int32_t priority = 0, effect_callback_t cbf = 0, effect_callback_t cbf = NULL, void* user = 0, void* user = NULL, int sessionId = 0, int sessionId = 0, audio_io_handle_t io = 0 audio_io_handle_t io = 0 ); ); Loading
include/media/AudioRecord.h +4 −4 Original line number Original line Diff line number Diff line Loading @@ -155,8 +155,8 @@ public: uint32_t channelMask = AUDIO_CHANNEL_IN_MONO, uint32_t channelMask = AUDIO_CHANNEL_IN_MONO, int frameCount = 0, int frameCount = 0, uint32_t flags = 0, uint32_t flags = 0, callback_t cbf = 0, callback_t cbf = NULL, void* user = 0, void* user = NULL, int notificationFrames = 0, int notificationFrames = 0, int sessionId = 0); int sessionId = 0); Loading @@ -181,8 +181,8 @@ public: uint32_t channelMask = AUDIO_CHANNEL_IN_MONO, uint32_t channelMask = AUDIO_CHANNEL_IN_MONO, int frameCount = 0, int frameCount = 0, uint32_t flags = 0, uint32_t flags = 0, callback_t cbf = 0, callback_t cbf = NULL, void* user = 0, void* user = NULL, int notificationFrames = 0, int notificationFrames = 0, bool threadCanCallJava = false, bool threadCanCallJava = false, int sessionId = 0); int sessionId = 0); Loading
include/media/AudioTrack.h +6 −6 Original line number Original line Diff line number Diff line Loading @@ -148,8 +148,8 @@ public: int channelMask = 0, int channelMask = 0, int frameCount = 0, int frameCount = 0, uint32_t flags = 0, uint32_t flags = 0, callback_t cbf = 0, callback_t cbf = NULL, void* user = 0, void* user = NULL, int notificationFrames = 0, int notificationFrames = 0, int sessionId = 0); int sessionId = 0); Loading Loading @@ -180,8 +180,8 @@ public: int channelMask = 0, int channelMask = 0, const sp<IMemory>& sharedBuffer = 0, const sp<IMemory>& sharedBuffer = 0, uint32_t flags = 0, uint32_t flags = 0, callback_t cbf = 0, callback_t cbf = NULL, void* user = 0, void* user = NULL, int notificationFrames = 0, int notificationFrames = 0, int sessionId = 0); int sessionId = 0); Loading @@ -204,8 +204,8 @@ public: int channelMask = 0, int channelMask = 0, int frameCount = 0, int frameCount = 0, uint32_t flags = 0, uint32_t flags = 0, callback_t cbf = 0, callback_t cbf = NULL, void* user = 0, void* user = NULL, int notificationFrames = 0, int notificationFrames = 0, const sp<IMemory>& sharedBuffer = 0, const sp<IMemory>& sharedBuffer = 0, bool threadCanCallJava = false, bool threadCanCallJava = false, Loading
include/media/Visualizer.h +2 −2 Original line number Original line Diff line number Diff line Loading @@ -66,8 +66,8 @@ public: * See AudioEffect constructor for details on parameters. * See AudioEffect constructor for details on parameters. */ */ Visualizer(int32_t priority = 0, Visualizer(int32_t priority = 0, effect_callback_t cbf = 0, effect_callback_t cbf = NULL, void* user = 0, void* user = NULL, int sessionId = 0); int sessionId = 0); ~Visualizer(); ~Visualizer(); Loading
media/libmedia/AudioEffect.cpp +4 −4 Original line number Original line Diff line number Diff line Loading @@ -342,7 +342,7 @@ void AudioEffect::binderDied() { { ALOGW("IEffect died"); ALOGW("IEffect died"); mStatus = NO_INIT; mStatus = NO_INIT; if (mCbf) { if (mCbf != NULL) { status_t status = DEAD_OBJECT; status_t status = DEAD_OBJECT; mCbf(EVENT_ERROR, mUserData, &status); mCbf(EVENT_ERROR, mUserData, &status); } } Loading @@ -363,7 +363,7 @@ void AudioEffect::controlStatusChanged(bool controlGranted) mStatus = ALREADY_EXISTS; mStatus = ALREADY_EXISTS; } } } } if (mCbf) { if (mCbf != NULL) { mCbf(EVENT_CONTROL_STATUS_CHANGED, mUserData, &controlGranted); mCbf(EVENT_CONTROL_STATUS_CHANGED, mUserData, &controlGranted); } } } } Loading @@ -373,7 +373,7 @@ void AudioEffect::enableStatusChanged(bool enabled) ALOGV("enableStatusChanged %p enabled %d mCbf %p", this, enabled, mCbf); ALOGV("enableStatusChanged %p enabled %d mCbf %p", this, enabled, mCbf); if (mStatus == ALREADY_EXISTS) { if (mStatus == ALREADY_EXISTS) { mEnabled = enabled; mEnabled = enabled; if (mCbf) { if (mCbf != NULL) { mCbf(EVENT_ENABLE_STATUS_CHANGED, mUserData, &enabled); mCbf(EVENT_ENABLE_STATUS_CHANGED, mUserData, &enabled); } } } } Loading @@ -389,7 +389,7 @@ void AudioEffect::commandExecuted(uint32_t cmdCode, return; return; } } if (mCbf && cmdCode == EFFECT_CMD_SET_PARAM) { if (mCbf != NULL && cmdCode == EFFECT_CMD_SET_PARAM) { effect_param_t *cmd = (effect_param_t *)cmdData; effect_param_t *cmd = (effect_param_t *)cmdData; cmd->status = *(int32_t *)replyData; cmd->status = *(int32_t *)replyData; mCbf(EVENT_PARAMETER_CHANGED, mUserData, cmd); mCbf(EVENT_PARAMETER_CHANGED, mUserData, cmd); Loading