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

Side by Side Diff: third_party/WebKit/Source/platform/audio/DirectConvolver.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) 2012 Intel Inc. All rights reserved. 2 * Copyright (C) 2012 Intel 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 20 matching lines...) Expand all
31 31
32 #include "platform/PlatformExport.h" 32 #include "platform/PlatformExport.h"
33 #include "platform/audio/AudioArray.h" 33 #include "platform/audio/AudioArray.h"
34 #include "wtf/Allocator.h" 34 #include "wtf/Allocator.h"
35 #include "wtf/Noncopyable.h" 35 #include "wtf/Noncopyable.h"
36 36
37 #if USE(WEBAUDIO_IPP) 37 #if USE(WEBAUDIO_IPP)
38 #include <ipps.h> 38 #include <ipps.h>
39 #endif // USE(WEBAUDIO_IPP) 39 #endif // USE(WEBAUDIO_IPP)
40 40
41 #if ENABLE(WEB_AUDIO)
42
43 namespace blink { 41 namespace blink {
44 42
45 class PLATFORM_EXPORT DirectConvolver { 43 class PLATFORM_EXPORT DirectConvolver {
46 USING_FAST_MALLOC(DirectConvolver); 44 USING_FAST_MALLOC(DirectConvolver);
47 WTF_MAKE_NONCOPYABLE(DirectConvolver); 45 WTF_MAKE_NONCOPYABLE(DirectConvolver);
48 public: 46 public:
49 DirectConvolver(size_t inputBlockSize); 47 DirectConvolver(size_t inputBlockSize);
50 48
51 void process(AudioFloatArray* convolutionKernel, const float* sourceP, float * destP, size_t framesToProcess); 49 void process(AudioFloatArray* convolutionKernel, const float* sourceP, float * destP, size_t framesToProcess);
52 50
53 void reset(); 51 void reset();
54 52
55 private: 53 private:
56 size_t m_inputBlockSize; 54 size_t m_inputBlockSize;
57 55
58 #if USE(WEBAUDIO_IPP) 56 #if USE(WEBAUDIO_IPP)
59 AudioFloatArray m_overlayBuffer; 57 AudioFloatArray m_overlayBuffer;
60 #endif // USE(WEBAUDIO_IPP) 58 #endif // USE(WEBAUDIO_IPP)
61 AudioFloatArray m_buffer; 59 AudioFloatArray m_buffer;
62 }; 60 };
63 61
64 } // namespace blink 62 } // namespace blink
65 63
66 #endif // ENABLE(WEB_AUDIO)
67
68 #endif // DirectConvolver_h 64 #endif // DirectConvolver_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/audio/Cone.cpp ('k') | third_party/WebKit/Source/platform/audio/DirectConvolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698