Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: Source/modules/webaudio/PannerNode.h

Issue 205173002: Move webaudio to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/webaudio/OscillatorNode.cpp ('k') | Source/modules/webaudio/PeriodicWave.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/modules/webaudio/OscillatorNode.cpp ('k') | Source/modules/webaudio/PeriodicWave.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698