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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/OscillatorNode.cpp

Issue 1493753003: Drop [LegacyInterfaceTypeChecking] for the Web Audio API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update tests Created 5 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 } 320 }
321 321
322 m_virtualReadIndex = virtualReadIndex; 322 m_virtualReadIndex = virtualReadIndex;
323 323
324 outputBus->clearSilentFlag(); 324 outputBus->clearSilentFlag();
325 } 325 }
326 326
327 void OscillatorHandler::setPeriodicWave(PeriodicWave* periodicWave) 327 void OscillatorHandler::setPeriodicWave(PeriodicWave* periodicWave)
328 { 328 {
329 ASSERT(isMainThread()); 329 ASSERT(isMainThread());
330 ASSERT(periodicWave);
330 331
331 // This synchronizes with process(). 332 // This synchronizes with process().
332 MutexLocker processLocker(m_processLock); 333 MutexLocker processLocker(m_processLock);
333 m_periodicWave = periodicWave; 334 m_periodicWave = periodicWave;
334 m_type = CUSTOM; 335 m_type = CUSTOM;
335 } 336 }
336 337
337 bool OscillatorHandler::propagatesSilence() const 338 bool OscillatorHandler::propagatesSilence() const
338 { 339 {
339 return !isPlayingOrScheduled() || hasFinished() || !m_periodicWave.get(); 340 return !isPlayingOrScheduled() || hasFinished() || !m_periodicWave.get();
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 } 390 }
390 391
391 void OscillatorNode::setPeriodicWave(PeriodicWave* wave) 392 void OscillatorNode::setPeriodicWave(PeriodicWave* wave)
392 { 393 {
393 oscillatorHandler().setPeriodicWave(wave); 394 oscillatorHandler().setPeriodicWave(wave);
394 } 395 }
395 396
396 } // namespace blink 397 } // namespace blink
397 398
398 #endif // ENABLE(WEB_AUDIO) 399 #endif // ENABLE(WEB_AUDIO)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698