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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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/AudioContext.h ('k') | Source/modules/webaudio/AudioListener.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 19 matching lines...) Expand all
30 #include "platform/audio/AudioSourceProvider.h" 30 #include "platform/audio/AudioSourceProvider.h"
31 #include "modules/webaudio/AudioBuffer.h" 31 #include "modules/webaudio/AudioBuffer.h"
32 #include "modules/webaudio/AudioNode.h" 32 #include "modules/webaudio/AudioNode.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class AudioBus; 36 class AudioBus;
37 class AudioContext; 37 class AudioContext;
38 38
39 class AudioDestinationNode : public AudioNode, public AudioIOCallback { 39 class AudioDestinationNode : public AudioNode, public AudioIOCallback {
40 DEFINE_WRAPPERTYPEINFO();
40 public: 41 public:
41 AudioDestinationNode(AudioContext*, float sampleRate); 42 AudioDestinationNode(AudioContext*, float sampleRate);
42 virtual ~AudioDestinationNode(); 43 virtual ~AudioDestinationNode();
43 44
44 // AudioNode 45 // AudioNode
45 virtual void dispose() OVERRIDE; 46 virtual void dispose() OVERRIDE;
46 virtual void process(size_t) OVERRIDE FINAL { } // we're pulled by hardware so this is never called 47 virtual void process(size_t) OVERRIDE FINAL { } // we're pulled by hardware so this is never called
47 48
48 // The audio hardware calls render() to get the next render quantum of audio into destinationBus. 49 // The audio hardware calls render() to get the next render quantum of audio into destinationBus.
49 // It will optionally give us local/live audio input in sourceBus (if it's n ot 0). 50 // It will optionally give us local/live audio input in sourceBus (if it's n ot 0).
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 91
91 // Counts the number of sample-frames processed by the destination. 92 // Counts the number of sample-frames processed by the destination.
92 size_t m_currentSampleFrame; 93 size_t m_currentSampleFrame;
93 94
94 LocalAudioInputProvider m_localAudioInputProvider; 95 LocalAudioInputProvider m_localAudioInputProvider;
95 }; 96 };
96 97
97 } // namespace blink 98 } // namespace blink
98 99
99 #endif // AudioDestinationNode_h 100 #endif // AudioDestinationNode_h
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioContext.h ('k') | Source/modules/webaudio/AudioListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698