summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-02-27 16:05:09 -0800
committerGlenn Kasten <gkasten@google.com>2012-11-05 13:49:59 -0800
commit847d05dc8fa144dcf8f4f435d6a6ac1727f00937 (patch)
treec079d882c6070ba620cad05b2b5254b4ba2ecf50
parentf27bdebd0c611f9618577f65346f44574146dc00 (diff)
downloadframeworks_av-847d05dc8fa144dcf8f4f435d6a6ac1727f00937.zip
frameworks_av-847d05dc8fa144dcf8f4f435d6a6ac1727f00937.tar.gz
frameworks_av-847d05dc8fa144dcf8f4f435d6a6ac1727f00937.tar.bz2
Remove deprecated AudioTrack APIs
Change-Id: I88be6525f3e33df529c0c3cb701d12a484809477
-rw-r--r--include/media/AudioTrack.h12
-rw-r--r--media/libmedia/AudioTrack.cpp22
2 files changed, 0 insertions, 34 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h
index 3d45503..76af2f8 100644
--- a/include/media/AudioTrack.h
+++ b/include/media/AudioTrack.h
@@ -167,18 +167,6 @@ public:
int notificationFrames = 0,
int sessionId = 0);
- // DEPRECATED
- explicit AudioTrack( int streamType,
- uint32_t sampleRate = 0,
- int format = AUDIO_FORMAT_DEFAULT,
- int channelMask = 0,
- int frameCount = 0,
- uint32_t flags = (uint32_t) AUDIO_OUTPUT_FLAG_NONE,
- callback_t cbf = 0,
- void* user = 0,
- int notificationFrames = 0,
- int sessionId = 0);
-
/* Creates an audio track and registers it with AudioFlinger. With this constructor,
* the PCM data to be rendered by AudioTrack is passed in a shared memory buffer
* identified by the argument sharedBuffer. This prototype is for static buffer playback.
diff --git a/media/libmedia/AudioTrack.cpp b/media/libmedia/AudioTrack.cpp
index ffed161..24db1bd 100644
--- a/media/libmedia/AudioTrack.cpp
+++ b/media/libmedia/AudioTrack.cpp
@@ -120,28 +120,6 @@ AudioTrack::AudioTrack(
0 /*sharedBuffer*/, false /*threadCanCallJava*/, sessionId);
}
-// DEPRECATED
-AudioTrack::AudioTrack(
- int streamType,
- uint32_t sampleRate,
- int format,
- int channelMask,
- int frameCount,
- uint32_t flags,
- callback_t cbf,
- void* user,
- int notificationFrames,
- int sessionId)
- : mStatus(NO_INIT),
- mIsTimed(false),
- mPreviousPriority(ANDROID_PRIORITY_NORMAL), mPreviousSchedulingGroup(SP_DEFAULT)
-{
- mStatus = set((audio_stream_type_t)streamType, sampleRate, (audio_format_t)format,
- (audio_channel_mask_t) channelMask,
- frameCount, (audio_output_flags_t)flags, cbf, user, notificationFrames,
- 0 /*sharedBuffer*/, false /*threadCanCallJava*/, sessionId);
-}
-
AudioTrack::AudioTrack(
audio_stream_type_t streamType,
uint32_t sampleRate,