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

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

Issue 614373007: Oilpan: Remove adoptRefCountedGarbageCollected (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
« no previous file with comments | « Source/modules/webaudio/AnalyserNode.h ('k') | Source/modules/webaudio/AudioContext.cpp » ('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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 const double DefaultGrainDuration = 0.020; // 20ms 43 const double DefaultGrainDuration = 0.020; // 20ms
44 44
45 // Arbitrary upper limit on playback rate. 45 // Arbitrary upper limit on playback rate.
46 // Higher than expected rates can be useful when playing back oversampled buffer s 46 // Higher than expected rates can be useful when playing back oversampled buffer s
47 // to minimize linear interpolation aliasing. 47 // to minimize linear interpolation aliasing.
48 const double MaxRate = 1024; 48 const double MaxRate = 1024;
49 49
50 AudioBufferSourceNode* AudioBufferSourceNode::create(AudioContext* context, floa t sampleRate) 50 AudioBufferSourceNode* AudioBufferSourceNode::create(AudioContext* context, floa t sampleRate)
51 { 51 {
52 return adoptRefCountedGarbageCollectedWillBeNoop(new AudioBufferSourceNode(c ontext, sampleRate)); 52 return new AudioBufferSourceNode(context, sampleRate);
53 } 53 }
54 54
55 AudioBufferSourceNode::AudioBufferSourceNode(AudioContext* context, float sample Rate) 55 AudioBufferSourceNode::AudioBufferSourceNode(AudioContext* context, float sample Rate)
56 : AudioScheduledSourceNode(context, sampleRate) 56 : AudioScheduledSourceNode(context, sampleRate)
57 , m_buffer(nullptr) 57 , m_buffer(nullptr)
58 , m_isLooping(false) 58 , m_isLooping(false)
59 , m_loopStart(0) 59 , m_loopStart(0)
60 , m_loopEnd(0) 60 , m_loopEnd(0)
61 , m_virtualReadIndex(0) 61 , m_virtualReadIndex(0)
62 , m_isGrain(false) 62 , m_isGrain(false)
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 { 503 {
504 visitor->trace(m_buffer); 504 visitor->trace(m_buffer);
505 visitor->trace(m_playbackRate); 505 visitor->trace(m_playbackRate);
506 visitor->trace(m_pannerNode); 506 visitor->trace(m_pannerNode);
507 AudioScheduledSourceNode::trace(visitor); 507 AudioScheduledSourceNode::trace(visitor);
508 } 508 }
509 509
510 } // namespace blink 510 } // namespace blink
511 511
512 #endif // ENABLE(WEB_AUDIO) 512 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AnalyserNode.h ('k') | Source/modules/webaudio/AudioContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698