diff options
author | Glenn Kasten <gkasten@google.com> | 2012-02-10 13:33:31 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-02-10 13:33:31 -0800 |
commit | 12018d80add66f5558675614d73fa6549150806e (patch) | |
tree | 8fbeaafce1f62e72edcef8d43a6a435fb3fe301c /services/audioflinger | |
parent | 8b5980798ca06e57b1284e6e23fa220e1207bf41 (diff) | |
parent | b7bf796b758e144f94f6ed4d16c21bf22a118fb3 (diff) | |
download | frameworks_av-12018d80add66f5558675614d73fa6549150806e.zip frameworks_av-12018d80add66f5558675614d73fa6549150806e.tar.gz frameworks_av-12018d80add66f5558675614d73fa6549150806e.tar.bz2 |
Merge "Move declaration of stream_type_t up earlier"
Diffstat (limited to 'services/audioflinger')
-rw-r--r-- | services/audioflinger/AudioFlinger.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index 4f7f195..955648f 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -564,6 +564,18 @@ private: KeyedVector< int, KeyedVector< int, sp<SuspendedSessionDesc> > > mSuspendedSessions; }; + struct stream_type_t { + stream_type_t() + : volume(1.0f), + mute(false), + valid(true) + { + } + float volume; + bool mute; + bool valid; + }; + // --- PlaybackThread --- class PlaybackThread : public ThreadBase { public: @@ -758,18 +770,6 @@ private: void setStreamValid(audio_stream_type_t streamType, bool valid); - struct stream_type_t { - stream_type_t() - : volume(1.0f), - mute(false), - valid(true) - { - } - float volume; - bool mute; - bool valid; - }; - protected: int16_t* mMixBuffer; int mSuspended; @@ -1412,7 +1412,7 @@ mutable Mutex mLock; // mutex for process, commands and handl DefaultKeyedVector< audio_io_handle_t, sp<PlaybackThread> > mPlaybackThreads; - PlaybackThread::stream_type_t mStreamTypes[AUDIO_STREAM_CNT]; + stream_type_t mStreamTypes[AUDIO_STREAM_CNT]; // both are protected by mLock float mMasterVolume; |