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 16 matching lines...) Expand all Loading... |
27 */ | 27 */ |
28 | 28 |
29 #ifndef AudioSourceNode_h | 29 #ifndef AudioSourceNode_h |
30 #define AudioSourceNode_h | 30 #define AudioSourceNode_h |
31 | 31 |
32 #include "modules/webaudio/AudioNode.h" | 32 #include "modules/webaudio/AudioNode.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 class AudioSourceNode : public AudioNode { | 36 class AudioSourceNode : public AudioNode { |
| 37 DEFINE_WRAPPERTYPEINFO(); |
37 public: | 38 public: |
38 AudioSourceNode(AudioContext* context, float sampleRate) | 39 AudioSourceNode(AudioContext* context, float sampleRate) |
39 : AudioNode(context, sampleRate) | 40 : AudioNode(context, sampleRate) |
40 { | 41 { |
41 ScriptWrappable::init(this); | 42 ScriptWrappable::init(this); |
42 } | 43 } |
43 protected: | 44 protected: |
44 virtual double tailTime() const OVERRIDE FINAL { return 0; } | 45 virtual double tailTime() const OVERRIDE FINAL { return 0; } |
45 virtual double latencyTime() const OVERRIDE FINAL { return 0; } | 46 virtual double latencyTime() const OVERRIDE FINAL { return 0; } |
46 }; | 47 }; |
47 | 48 |
48 } // namespace blink | 49 } // namespace blink |
49 | 50 |
50 #endif // AudioSourceNode_h | 51 #endif // AudioSourceNode_h |
OLD | NEW |