| 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 18 matching lines...) Expand all Loading... |
| 29 #ifndef AudioListener_h | 29 #ifndef AudioListener_h |
| 30 #define AudioListener_h | 30 #define AudioListener_h |
| 31 | 31 |
| 32 #include "bindings/core/v8/ScriptWrappable.h" | 32 #include "bindings/core/v8/ScriptWrappable.h" |
| 33 #include "platform/geometry/FloatPoint3D.h" | 33 #include "platform/geometry/FloatPoint3D.h" |
| 34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
| 35 #include "wtf/PassRefPtr.h" | 35 #include "wtf/PassRefPtr.h" |
| 36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
| 37 #include "wtf/Vector.h" | 37 #include "wtf/Vector.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace blink { |
| 40 | 40 |
| 41 class PannerNode; | 41 class PannerNode; |
| 42 | 42 |
| 43 // AudioListener maintains the state of the listener in the audio scene as defin
ed in the OpenAL specification. | 43 // AudioListener maintains the state of the listener in the audio scene as defin
ed in the OpenAL specification. |
| 44 | 44 |
| 45 class AudioListener : public RefCountedWillBeGarbageCollectedFinalized<AudioList
ener>, public ScriptWrappable { | 45 class AudioListener : public RefCountedWillBeGarbageCollectedFinalized<AudioList
ener>, public ScriptWrappable { |
| 46 public: | 46 public: |
| 47 static PassRefPtrWillBeRawPtr<AudioListener> create() | 47 static PassRefPtrWillBeRawPtr<AudioListener> create() |
| 48 { | 48 { |
| 49 return adoptRefWillBeNoop(new AudioListener()); | 49 return adoptRefWillBeNoop(new AudioListener()); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // Synchronize a panner's process() with setting of the state of the listene
r. | 101 // Synchronize a panner's process() with setting of the state of the listene
r. |
| 102 mutable Mutex m_listenerLock; | 102 mutable Mutex m_listenerLock; |
| 103 | 103 |
| 104 // List for pannerNodes in context. | 104 // List for pannerNodes in context. |
| 105 Vector<PannerNode*> m_panners; | 105 Vector<PannerNode*> m_panners; |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 } // WebCore | 108 } // WebCore |
| 109 | 109 |
| 110 #endif // AudioListener_h | 110 #endif // AudioListener_h |
| OLD | NEW |