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

Side by Side Diff: Source/modules/webaudio/AudioNode.cpp

Issue 1140723003: Implement suspend() and resume() for OfflineAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Bring ToT Created 5 years, 4 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
« no previous file with comments | « Source/modules/webaudio/AudioNode.h ('k') | Source/modules/webaudio/DeferredTaskHandler.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 25 matching lines...) Expand all
36 #include "wtf/Atomics.h" 36 #include "wtf/Atomics.h"
37 #include "wtf/MainThread.h" 37 #include "wtf/MainThread.h"
38 38
39 #if DEBUG_AUDIONODE_REFERENCES 39 #if DEBUG_AUDIONODE_REFERENCES
40 #include <stdio.h> 40 #include <stdio.h>
41 #endif 41 #endif
42 42
43 namespace blink { 43 namespace blink {
44 44
45 AudioHandler::AudioHandler(NodeType nodeType, AudioNode& node, float sampleRate) 45 AudioHandler::AudioHandler(NodeType nodeType, AudioNode& node, float sampleRate)
46 : m_isInitialized(false) 46 : m_context(node.context())
47 , m_isInitialized(false)
47 , m_nodeType(NodeTypeUnknown) 48 , m_nodeType(NodeTypeUnknown)
48 , m_node(&node) 49 , m_node(&node)
49 , m_context(node.context())
50 , m_sampleRate(sampleRate) 50 , m_sampleRate(sampleRate)
51 , m_lastProcessingTime(-1) 51 , m_lastProcessingTime(-1)
52 , m_lastNonSilentTime(-1) 52 , m_lastNonSilentTime(-1)
53 , m_connectionRefCount(0) 53 , m_connectionRefCount(0)
54 , m_isDisabled(false) 54 , m_isDisabled(false)
55 , m_channelCount(2) 55 , m_channelCount(2)
56 , m_channelCountMode(Max) 56 , m_channelCountMode(Max)
57 , m_channelInterpretation(AudioBus::Speakers) 57 , m_channelInterpretation(AudioBus::Speakers)
58 , m_newChannelCountMode(Max) 58 , m_newChannelCountMode(Max)
59 { 59 {
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 { 929 {
930 m_connectedNodes.append(nullptr); 930 m_connectedNodes.append(nullptr);
931 ASSERT_UNUSED(numberOfOutputs, numberOfOutputs == m_connectedNodes.size()); 931 ASSERT_UNUSED(numberOfOutputs, numberOfOutputs == m_connectedNodes.size());
932 m_connectedParams.append(nullptr); 932 m_connectedParams.append(nullptr);
933 ASSERT_UNUSED(numberOfOutputs, numberOfOutputs == m_connectedParams.size()); 933 ASSERT_UNUSED(numberOfOutputs, numberOfOutputs == m_connectedParams.size());
934 } 934 }
935 935
936 } // namespace blink 936 } // namespace blink
937 937
938 #endif // ENABLE(WEB_AUDIO) 938 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioNode.h ('k') | Source/modules/webaudio/DeferredTaskHandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698