diff options
author | Glenn Kasten <gkasten@google.com> | 2012-02-08 12:36:25 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-02-08 12:54:31 -0800 |
commit | b7bf796b758e144f94f6ed4d16c21bf22a118fb3 (patch) | |
tree | ae407de10945e65b4092455db41ae6b8b3c8462c /services/audioflinger/AudioFlinger.h | |
parent | 98ec94c5854daccc3474758524e7f4adfe535ce0 (diff) | |
download | frameworks_av-b7bf796b758e144f94f6ed4d16c21bf22a118fb3.zip frameworks_av-b7bf796b758e144f94f6ed4d16c21bf22a118fb3.tar.gz frameworks_av-b7bf796b758e144f94f6ed4d16c21bf22a118fb3.tar.bz2 |
Move declaration of stream_type_t up earlier
stream_type_t is used by AudioFlinger class, so it should be declared there.
This way we don't have to peek into PlaybackThread to get the declaration.
Change-Id: Ie08bab1604699214d1e8df2d48d3fbfbbc436e96
Diffstat (limited to 'services/audioflinger/AudioFlinger.h')
-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 97103c4..f80750b 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; |