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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 class PannerNode FINAL : public AudioNode { | 48 class PannerNode FINAL : public AudioNode { |
49 public: | 49 public: |
50 // These enums are used to distinguish what cached values of panner are dirt
y. | 50 // These enums are used to distinguish what cached values of panner are dirt
y. |
51 enum { | 51 enum { |
52 AzimuthElevationDirty = 0x1, | 52 AzimuthElevationDirty = 0x1, |
53 DistanceConeGainDirty = 0x2, | 53 DistanceConeGainDirty = 0x2, |
54 DopplerRateDirty = 0x4, | 54 DopplerRateDirty = 0x4, |
55 }; | 55 }; |
56 | 56 |
57 static PassRefPtr<PannerNode> create(AudioContext* context, float sampleRate
) | 57 static PassRefPtrWillBeRawPtr<PannerNode> create(AudioContext* context, floa
t sampleRate) |
58 { | 58 { |
59 return adoptRef(new PannerNode(context, sampleRate)); | 59 return adoptRefWillBeNoop(new PannerNode(context, sampleRate)); |
60 } | 60 } |
61 | 61 |
62 virtual ~PannerNode(); | 62 virtual ~PannerNode(); |
63 | 63 |
64 // AudioNode | 64 // AudioNode |
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; |
69 | 69 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // AudioContext's connection count | 160 // AudioContext's connection count |
161 unsigned m_connectionCount; | 161 unsigned m_connectionCount; |
162 | 162 |
163 // Synchronize process() with setting of the panning model, source's locatio
n information, listener, distance parameters and sound cones. | 163 // Synchronize process() with setting of the panning model, source's locatio
n information, listener, distance parameters and sound cones. |
164 mutable Mutex m_processLock; | 164 mutable Mutex m_processLock; |
165 }; | 165 }; |
166 | 166 |
167 } // namespace WebCore | 167 } // namespace WebCore |
168 | 168 |
169 #endif // PannerNode_h | 169 #endif // PannerNode_h |
OLD | NEW |