summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
Diffstat (limited to 'media')
-rw-r--r--media/libmedia/ToneGenerator.cpp2
-rw-r--r--media/libmediaplayerservice/MediaPlayerService.cpp2
-rw-r--r--media/libmediaplayerservice/MediaPlayerService.h2
-rw-r--r--media/libstagefright/AudioPlayer.cpp4
4 files changed, 5 insertions, 5 deletions
diff --git a/media/libmedia/ToneGenerator.cpp b/media/libmedia/ToneGenerator.cpp
index 913a6db..9f1b3d6 100644
--- a/media/libmedia/ToneGenerator.cpp
+++ b/media/libmedia/ToneGenerator.cpp
@@ -1076,7 +1076,7 @@ initAudioTrack_exit:
// returned value: always true.
//
////////////////////////////////////////////////////////////////////////////////
-void ToneGenerator::audioCallback(AudioTrack::event_type event, void* user, void *info) {
+void ToneGenerator::audioCallback(int event, void* user, void *info) {
if (event != AudioTrack::EVENT_MORE_DATA) return;
diff --git a/media/libmediaplayerservice/MediaPlayerService.cpp b/media/libmediaplayerservice/MediaPlayerService.cpp
index 0676fcd..eae93ff 100644
--- a/media/libmediaplayerservice/MediaPlayerService.cpp
+++ b/media/libmediaplayerservice/MediaPlayerService.cpp
@@ -1454,7 +1454,7 @@ status_t MediaPlayerService::AudioOutput::attachAuxEffect(int effectId)
// static
void MediaPlayerService::AudioOutput::CallbackWrapper(
- AudioTrack::event_type event, void *cookie, void *info) {
+ int event, void *cookie, void *info) {
//LOGV("callbackwrapper");
if (event != AudioTrack::EVENT_MORE_DATA) {
return;
diff --git a/media/libmediaplayerservice/MediaPlayerService.h b/media/libmediaplayerservice/MediaPlayerService.h
index 573117c..8bab471 100644
--- a/media/libmediaplayerservice/MediaPlayerService.h
+++ b/media/libmediaplayerservice/MediaPlayerService.h
@@ -103,7 +103,7 @@ class MediaPlayerService : public BnMediaPlayerService
private:
static void setMinBufferCount();
static void CallbackWrapper(
- AudioTrack::event_type event, void *me, void *info);
+ int event, void *me, void *info);
AudioTrack* mTrack;
AudioCallback mCallback;
diff --git a/media/libstagefright/AudioPlayer.cpp b/media/libstagefright/AudioPlayer.cpp
index c2bacb7..dd69e6b 100644
--- a/media/libstagefright/AudioPlayer.cpp
+++ b/media/libstagefright/AudioPlayer.cpp
@@ -249,7 +249,7 @@ void AudioPlayer::reset() {
}
// static
-void AudioPlayer::AudioCallback(AudioTrack::event_type event, void *user, void *info) {
+void AudioPlayer::AudioCallback(int event, void *user, void *info) {
static_cast<AudioPlayer *>(user)->AudioCallback(event, info);
}
@@ -275,7 +275,7 @@ size_t AudioPlayer::AudioSinkCallback(
return me->fillBuffer(buffer, size);
}
-void AudioPlayer::AudioCallback(AudioTrack::event_type event, void *info) {
+void AudioPlayer::AudioCallback(int event, void *info) {
if (event != AudioTrack::EVENT_MORE_DATA) {
return;
}