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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 class PannerNode FINAL : public AudioNode { | 47 class PannerNode FINAL : public AudioNode { |
48 public: | 48 public: |
49 // These enums are used to distinguish what cached values of panner are dirt
y. | 49 // These enums are used to distinguish what cached values of panner are dirt
y. |
50 enum { | 50 enum { |
51 AzimuthElevationDirty = 0x1, | 51 AzimuthElevationDirty = 0x1, |
52 DistanceConeGainDirty = 0x2, | 52 DistanceConeGainDirty = 0x2, |
53 DopplerRateDirty = 0x4, | 53 DopplerRateDirty = 0x4, |
54 }; | 54 }; |
55 | 55 |
56 static PassRefPtrWillBeRawPtr<PannerNode> create(AudioContext* context, floa
t sampleRate) | 56 static PannerNode* create(AudioContext* context, float sampleRate) |
57 { | 57 { |
58 return adoptRefWillBeNoop(new PannerNode(context, sampleRate)); | 58 return adoptRefCountedGarbageCollectedWillBeNoop(new PannerNode(context,
sampleRate)); |
59 } | 59 } |
60 | 60 |
61 virtual ~PannerNode(); | 61 virtual ~PannerNode(); |
62 | 62 |
63 // AudioNode | 63 // AudioNode |
64 virtual void dispose() OVERRIDE; | 64 virtual void dispose() OVERRIDE; |
65 virtual void process(size_t framesToProcess) OVERRIDE; | 65 virtual void process(size_t framesToProcess) OVERRIDE; |
66 virtual void pullInputs(size_t framesToProcess) OVERRIDE; | 66 virtual void pullInputs(size_t framesToProcess) OVERRIDE; |
67 virtual void initialize() OVERRIDE; | 67 virtual void initialize() OVERRIDE; |
68 virtual void uninitialize() OVERRIDE; | 68 virtual void uninitialize() OVERRIDE; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // AudioContext's connection count | 158 // AudioContext's connection count |
159 unsigned m_connectionCount; | 159 unsigned m_connectionCount; |
160 | 160 |
161 // Synchronize process() with setting of the panning model, source's locatio
n information, listener, distance parameters and sound cones. | 161 // Synchronize process() with setting of the panning model, source's locatio
n information, listener, distance parameters and sound cones. |
162 mutable Mutex m_processLock; | 162 mutable Mutex m_processLock; |
163 }; | 163 }; |
164 | 164 |
165 } // namespace blink | 165 } // namespace blink |
166 | 166 |
167 #endif // PannerNode_h | 167 #endif // PannerNode_h |
OLD | NEW |