summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-02-10 13:33:31 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-02-10 13:33:31 -0800
commitc1513f42eecca54c385a6e63abe6ddcfff5c911c (patch)
tree5311e5134b9b37fb2d6e3c7a8d49b98643a64ee1 /services
parent80d0a9db5509c492a5c42f2efdd1a55b256d5838 (diff)
parent3773334fbdd8c8cdeba2e19a6e0017d2726ce71f (diff)
downloadframeworks_base-c1513f42eecca54c385a6e63abe6ddcfff5c911c.zip
frameworks_base-c1513f42eecca54c385a6e63abe6ddcfff5c911c.tar.gz
frameworks_base-c1513f42eecca54c385a6e63abe6ddcfff5c911c.tar.bz2
Merge "Move declaration of stream_type_t up earlier"
Diffstat (limited to 'services')
-rw-r--r--services/audioflinger/AudioFlinger.h26
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;