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

Side by Side Diff: Source/platform/audio/AudioDestination.h

Issue 630853002: Replacing the OVERRIDE with override in third_party/WebKit/Source/platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase build fix 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
« no previous file with comments | « Source/platform/audio/AudioDelayDSPKernel.h ('k') | Source/platform/audio/EqualPowerPanner.h » ('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 * 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Port-specific device identification information for live/local input stre ams can be passed in the inputDeviceId. 54 // Port-specific device identification information for live/local input stre ams can be passed in the inputDeviceId.
55 static PassOwnPtr<AudioDestination> create(AudioIOCallback&, const String& i nputDeviceId, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, f loat sampleRate); 55 static PassOwnPtr<AudioDestination> create(AudioIOCallback&, const String& i nputDeviceId, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, f loat sampleRate);
56 56
57 virtual void start(); 57 virtual void start();
58 virtual void stop(); 58 virtual void stop();
59 bool isPlaying() { return m_isPlaying; } 59 bool isPlaying() { return m_isPlaying; }
60 60
61 float sampleRate() const { return m_sampleRate; } 61 float sampleRate() const { return m_sampleRate; }
62 62
63 // WebAudioDevice::RenderCallback 63 // WebAudioDevice::RenderCallback
64 virtual void render(const WebVector<float*>& sourceData, const WebVector<flo at*>& audioData, size_t numberOfFrames) OVERRIDE; 64 virtual void render(const WebVector<float*>& sourceData, const WebVector<flo at*>& audioData, size_t numberOfFrames) override;
65 65
66 // AudioSourceProvider 66 // AudioSourceProvider
67 virtual void provideInput(AudioBus*, size_t framesToProcess) OVERRIDE; 67 virtual void provideInput(AudioBus*, size_t framesToProcess) override;
68 68
69 static float hardwareSampleRate(); 69 static float hardwareSampleRate();
70 70
71 // maxChannelCount() returns the total number of output channels of the audi o hardware. 71 // maxChannelCount() returns the total number of output channels of the audi o hardware.
72 // A value of 0 indicates that the number of channels cannot be configured a nd 72 // A value of 0 indicates that the number of channels cannot be configured a nd
73 // that only stereo (2-channel) destinations can be created. 73 // that only stereo (2-channel) destinations can be created.
74 // The numberOfOutputChannels parameter of AudioDestination::create() is all owed to 74 // The numberOfOutputChannels parameter of AudioDestination::create() is all owed to
75 // be a value: 1 <= numberOfOutputChannels <= maxChannelCount(), 75 // be a value: 1 <= numberOfOutputChannels <= maxChannelCount(),
76 // or if maxChannelCount() equals 0, then numberOfOutputChannels must be 2. 76 // or if maxChannelCount() equals 0, then numberOfOutputChannels must be 2.
77 static unsigned long maxChannelCount(); 77 static unsigned long maxChannelCount();
78 78
79 private: 79 private:
80 AudioIOCallback& m_callback; 80 AudioIOCallback& m_callback;
81 unsigned m_numberOfOutputChannels; 81 unsigned m_numberOfOutputChannels;
82 RefPtr<AudioBus> m_inputBus; 82 RefPtr<AudioBus> m_inputBus;
83 RefPtr<AudioBus> m_renderBus; 83 RefPtr<AudioBus> m_renderBus;
84 float m_sampleRate; 84 float m_sampleRate;
85 bool m_isPlaying; 85 bool m_isPlaying;
86 OwnPtr<WebAudioDevice> m_audioDevice; 86 OwnPtr<WebAudioDevice> m_audioDevice;
87 size_t m_callbackBufferSize; 87 size_t m_callbackBufferSize;
88 88
89 OwnPtr<AudioFIFO> m_inputFifo; 89 OwnPtr<AudioFIFO> m_inputFifo;
90 OwnPtr<AudioPullFIFO> m_fifo; 90 OwnPtr<AudioPullFIFO> m_fifo;
91 }; 91 };
92 92
93 } // namespace blink 93 } // namespace blink
94 94
95 #endif // AudioDestination_h 95 #endif // AudioDestination_h
OLDNEW
« no previous file with comments | « Source/platform/audio/AudioDelayDSPKernel.h ('k') | Source/platform/audio/EqualPowerPanner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698