Loading include/media/AudioTrack.h +1 −1 Original line number Diff line number Diff line Loading @@ -674,6 +674,7 @@ protected: audio_stream_type_t mStreamType; uint32_t mChannelCount; audio_channel_mask_t mChannelMask; sp<IMemory> mSharedBuffer; transfer_type mTransfer; // mFrameSize is equal to mFrameSizeAF for non-PCM or 16-bit PCM data. For 8-bit PCM data, it's Loading Loading @@ -715,7 +716,6 @@ protected: bool mRetryOnPartialBuffer; // sleep and retry after partial obtainBuffer() uint32_t mObservedSequence; // last observed value of mSequence sp<IMemory> mSharedBuffer; uint32_t mLoopPeriod; // in frames, zero means looping is disabled uint32_t mMarkerPosition; // in wrapping (overflow) frame units Loading media/libmedia/AudioTrack.cpp +7 −3 Original line number Diff line number Diff line Loading @@ -222,6 +222,7 @@ status_t AudioTrack::set( ALOGE("Invalid transfer type %d", transferType); return BAD_VALUE; } mSharedBuffer = sharedBuffer; mTransfer = transferType; // FIXME "int" here is legacy and will be replaced by size_t later Loading Loading @@ -250,6 +251,11 @@ status_t AudioTrack::set( if (streamType == AUDIO_STREAM_DEFAULT) { streamType = AUDIO_STREAM_MUSIC; } if (uint32_t(streamType) >= AUDIO_STREAM_CNT) { ALOGE("Invalid stream type %d", streamType); return BAD_VALUE; } mStreamType = streamType; status_t status; if (sampleRate == 0) { Loading @@ -272,6 +278,7 @@ status_t AudioTrack::set( ALOGE("Invalid format %d", format); return BAD_VALUE; } mFormat = format; if (!audio_is_output_channel(channelMask)) { ALOGE("Invalid channel mask %#x", channelMask); Loading Loading @@ -369,9 +376,6 @@ status_t AudioTrack::set( } mStatus = NO_ERROR; mStreamType = streamType; mFormat = format; mSharedBuffer = sharedBuffer; mState = STATE_STOPPED; mUserData = user; mLoopPeriod = 0; Loading Loading
include/media/AudioTrack.h +1 −1 Original line number Diff line number Diff line Loading @@ -674,6 +674,7 @@ protected: audio_stream_type_t mStreamType; uint32_t mChannelCount; audio_channel_mask_t mChannelMask; sp<IMemory> mSharedBuffer; transfer_type mTransfer; // mFrameSize is equal to mFrameSizeAF for non-PCM or 16-bit PCM data. For 8-bit PCM data, it's Loading Loading @@ -715,7 +716,6 @@ protected: bool mRetryOnPartialBuffer; // sleep and retry after partial obtainBuffer() uint32_t mObservedSequence; // last observed value of mSequence sp<IMemory> mSharedBuffer; uint32_t mLoopPeriod; // in frames, zero means looping is disabled uint32_t mMarkerPosition; // in wrapping (overflow) frame units Loading
media/libmedia/AudioTrack.cpp +7 −3 Original line number Diff line number Diff line Loading @@ -222,6 +222,7 @@ status_t AudioTrack::set( ALOGE("Invalid transfer type %d", transferType); return BAD_VALUE; } mSharedBuffer = sharedBuffer; mTransfer = transferType; // FIXME "int" here is legacy and will be replaced by size_t later Loading Loading @@ -250,6 +251,11 @@ status_t AudioTrack::set( if (streamType == AUDIO_STREAM_DEFAULT) { streamType = AUDIO_STREAM_MUSIC; } if (uint32_t(streamType) >= AUDIO_STREAM_CNT) { ALOGE("Invalid stream type %d", streamType); return BAD_VALUE; } mStreamType = streamType; status_t status; if (sampleRate == 0) { Loading @@ -272,6 +278,7 @@ status_t AudioTrack::set( ALOGE("Invalid format %d", format); return BAD_VALUE; } mFormat = format; if (!audio_is_output_channel(channelMask)) { ALOGE("Invalid channel mask %#x", channelMask); Loading Loading @@ -369,9 +376,6 @@ status_t AudioTrack::set( } mStatus = NO_ERROR; mStreamType = streamType; mFormat = format; mSharedBuffer = sharedBuffer; mState = STATE_STOPPED; mUserData = user; mLoopPeriod = 0; Loading