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

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

Issue 663003002: Revert of Implement suspend/resume for AudioContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, Google Inc. All rights reserved. 2 * Copyright (C) 2011, 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 virtual ~OfflineAudioDestinationNode(); 46 virtual ~OfflineAudioDestinationNode();
47 47
48 // AudioNode 48 // AudioNode
49 virtual void dispose() override; 49 virtual void dispose() override;
50 virtual void initialize() override; 50 virtual void initialize() override;
51 virtual void uninitialize() override; 51 virtual void uninitialize() override;
52 52
53 // AudioDestinationNode 53 // AudioDestinationNode
54 virtual void startRendering() override; 54 virtual void startRendering() override;
55 virtual void stopRendering() override;
56 55
57 virtual float sampleRate() const override { return m_renderTarget->sampleRa te(); } 56 virtual float sampleRate() const override { return m_renderTarget->sampleRa te(); }
58 57
59 virtual void trace(Visitor*) override; 58 virtual void trace(Visitor*) override;
60 59
61 private: 60 private:
62 OfflineAudioDestinationNode(AudioContext*, AudioBuffer* renderTarget); 61 OfflineAudioDestinationNode(AudioContext*, AudioBuffer* renderTarget);
63 62
64 // This AudioNode renders into this AudioBuffer. 63 // This AudioNode renders into this AudioBuffer.
65 Member<AudioBuffer> m_renderTarget; 64 Member<AudioBuffer> m_renderTarget;
66 // Temporary AudioBus for each render quantum. 65 // Temporary AudioBus for each render quantum.
67 RefPtr<AudioBus> m_renderBus; 66 RefPtr<AudioBus> m_renderBus;
68 67
69 // Rendering thread. 68 // Rendering thread.
70 OwnPtr<WebThread> m_renderThread; 69 OwnPtr<WebThread> m_renderThread;
71 bool m_startedRendering; 70 bool m_startedRendering;
72 void offlineRender(); 71 void offlineRender();
73 72
74 // For completion callback on main thread. 73 // For completion callback on main thread.
75 void notifyComplete(); 74 void notifyComplete();
76 }; 75 };
77 76
78 } // namespace blink 77 } // namespace blink
79 78
80 #endif // OfflineAudioDestinationNode_h 79 #endif // OfflineAudioDestinationNode_h
OLDNEW
« no previous file with comments | « Source/modules/webaudio/DefaultAudioDestinationNode.cpp ('k') | Source/modules/webaudio/OfflineAudioDestinationNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698