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

Side by Side Diff: third_party/WebKit/Source/platform/audio/AudioDSPKernelProcessor.h

Issue 1557363002: Remove the WEB_AUDIO compile time flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 20 matching lines...) Expand all
31 #ifndef AudioDSPKernelProcessor_h 31 #ifndef AudioDSPKernelProcessor_h
32 #define AudioDSPKernelProcessor_h 32 #define AudioDSPKernelProcessor_h
33 33
34 #include "platform/audio/AudioBus.h" 34 #include "platform/audio/AudioBus.h"
35 #include "platform/audio/AudioProcessor.h" 35 #include "platform/audio/AudioProcessor.h"
36 #include "wtf/OwnPtr.h" 36 #include "wtf/OwnPtr.h"
37 #include "wtf/PassOwnPtr.h" 37 #include "wtf/PassOwnPtr.h"
38 #include "wtf/ThreadingPrimitives.h" 38 #include "wtf/ThreadingPrimitives.h"
39 #include "wtf/Vector.h" 39 #include "wtf/Vector.h"
40 40
41 #if ENABLE(WEB_AUDIO)
42
43 namespace blink { 41 namespace blink {
44 42
45 class AudioBus; 43 class AudioBus;
46 class AudioDSPKernel; 44 class AudioDSPKernel;
47 class AudioProcessor; 45 class AudioProcessor;
48 46
49 // AudioDSPKernelProcessor processes one input -> one output (N channels each) 47 // AudioDSPKernelProcessor processes one input -> one output (N channels each)
50 // It uses one AudioDSPKernel object per channel to do the processing, thus ther e is no cross-channel processing. 48 // It uses one AudioDSPKernel object per channel to do the processing, thus ther e is no cross-channel processing.
51 // Despite this limitation it turns out to be a very common and useful type of p rocessor. 49 // Despite this limitation it turns out to be a very common and useful type of p rocessor.
52 50
(...skipping 18 matching lines...) Expand all
71 double latencyTime() const override; 69 double latencyTime() const override;
72 70
73 protected: 71 protected:
74 Vector<OwnPtr<AudioDSPKernel>> m_kernels; 72 Vector<OwnPtr<AudioDSPKernel>> m_kernels;
75 mutable Mutex m_processLock; 73 mutable Mutex m_processLock;
76 bool m_hasJustReset; 74 bool m_hasJustReset;
77 }; 75 };
78 76
79 } // namespace blink 77 } // namespace blink
80 78
81 #endif // ENABLE(WEB_AUDIO)
82
83 #endif // AudioDSPKernelProcessor_h 79 #endif // AudioDSPKernelProcessor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698