OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 Mutex& listenerLock() { return m_listenerLock; } | 79 Mutex& listenerLock() { return m_listenerLock; } |
80 void addPanner(PannerNode*); | 80 void addPanner(PannerNode*); |
81 void removePanner(PannerNode*); | 81 void removePanner(PannerNode*); |
82 | 82 |
83 // HRTF DB loader | 83 // HRTF DB loader |
84 HRTFDatabaseLoader* hrtfDatabaseLoader() { return m_hrtfDatabaseLoader.get()
; } | 84 HRTFDatabaseLoader* hrtfDatabaseLoader() { return m_hrtfDatabaseLoader.get()
; } |
85 void createAndLoadHRTFDatabaseLoader(float); | 85 void createAndLoadHRTFDatabaseLoader(float); |
86 bool isHRTFDatabaseLoaded(); | 86 bool isHRTFDatabaseLoaded(); |
87 void waitForHRTFDatabaseLoaderThreadCompletion(); | 87 void waitForHRTFDatabaseLoaderThreadCompletion(); |
88 | 88 |
89 void trace(Visitor*); | 89 virtual void trace(Visitor*); |
90 | 90 |
91 private: | 91 private: |
92 AudioListener(); | 92 AudioListener(); |
93 | 93 |
94 void setPosition(const FloatPoint3D&); | 94 void setPosition(const FloatPoint3D&); |
95 void setOrientation(const FloatPoint3D&); | 95 void setOrientation(const FloatPoint3D&); |
96 void setUpVector(const FloatPoint3D&); | 96 void setUpVector(const FloatPoint3D&); |
97 void setVelocity(const FloatPoint3D&); | 97 void setVelocity(const FloatPoint3D&); |
98 | 98 |
99 void markPannersAsDirty(unsigned); | 99 void markPannersAsDirty(unsigned); |
(...skipping 10 matching lines...) Expand all Loading... |
110 // List for pannerNodes in context. This is updated only in the main thread, | 110 // List for pannerNodes in context. This is updated only in the main thread, |
111 // and can be referred in audio thread. | 111 // and can be referred in audio thread. |
112 WillBeHeapVector<RawPtrWillBeMember<PannerNode> > m_panners; | 112 WillBeHeapVector<RawPtrWillBeMember<PannerNode> > m_panners; |
113 // HRTF DB loader for panner node. | 113 // HRTF DB loader for panner node. |
114 RefPtr<HRTFDatabaseLoader> m_hrtfDatabaseLoader; | 114 RefPtr<HRTFDatabaseLoader> m_hrtfDatabaseLoader; |
115 }; | 115 }; |
116 | 116 |
117 } // namespace blink | 117 } // namespace blink |
118 | 118 |
119 #endif // AudioListener_h | 119 #endif // AudioListener_h |
OLD | NEW |