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

Side by Side Diff: third_party/WebKit/Source/platform/audio/AudioResampler.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 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 15 matching lines...) Expand all
26 #define AudioResampler_h 26 #define AudioResampler_h
27 27
28 #include "platform/audio/AudioBus.h" 28 #include "platform/audio/AudioBus.h"
29 #include "platform/audio/AudioResamplerKernel.h" 29 #include "platform/audio/AudioResamplerKernel.h"
30 #include "platform/audio/AudioSourceProvider.h" 30 #include "platform/audio/AudioSourceProvider.h"
31 #include "wtf/Allocator.h" 31 #include "wtf/Allocator.h"
32 #include "wtf/Noncopyable.h" 32 #include "wtf/Noncopyable.h"
33 #include "wtf/OwnPtr.h" 33 #include "wtf/OwnPtr.h"
34 #include "wtf/Vector.h" 34 #include "wtf/Vector.h"
35 35
36 #if ENABLE(WEB_AUDIO)
37
38 namespace blink { 36 namespace blink {
39 37
40 // AudioResampler resamples the audio stream from an AudioSourceProvider. 38 // AudioResampler resamples the audio stream from an AudioSourceProvider.
41 // The audio stream may be single or multi-channel. 39 // The audio stream may be single or multi-channel.
42 // The default constructor defaults to single-channel (mono). 40 // The default constructor defaults to single-channel (mono).
43 41
44 class PLATFORM_EXPORT AudioResampler { 42 class PLATFORM_EXPORT AudioResampler {
45 DISALLOW_NEW(); 43 DISALLOW_NEW();
46 WTF_MAKE_NONCOPYABLE(AudioResampler); 44 WTF_MAKE_NONCOPYABLE(AudioResampler);
47 public: 45 public:
(...skipping 16 matching lines...) Expand all
64 static const double MaxRate; 62 static const double MaxRate;
65 63
66 private: 64 private:
67 double m_rate; 65 double m_rate;
68 Vector<OwnPtr<AudioResamplerKernel>> m_kernels; 66 Vector<OwnPtr<AudioResamplerKernel>> m_kernels;
69 RefPtr<AudioBus> m_sourceBus; 67 RefPtr<AudioBus> m_sourceBus;
70 }; 68 };
71 69
72 } // namespace blink 70 } // namespace blink
73 71
74 #endif // ENABLE(WEB_AUDIO)
75
76 #endif // AudioResampler_h 72 #endif // AudioResampler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698