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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.h

Issue 2501863003: Support for AudioContextOptions latencyHint. (Closed)
Patch Set: Fixes to WebAudioDeviceImpl unit test. Created 3 years, 10 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) 2011, Google Inc. All rights reserved. 2 * Copyright (C) 2011, 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 // AudioDestinationHandler 57 // AudioDestinationHandler
58 void startRendering() override; 58 void startRendering() override;
59 void stopRendering() override; 59 void stopRendering() override;
60 unsigned long maxChannelCount() const override; 60 unsigned long maxChannelCount() const override;
61 61
62 // Returns the rendering callback buffer size. This should never be 62 // Returns the rendering callback buffer size. This should never be
63 // called. 63 // called.
64 size_t callbackBufferSize() const override; 64 size_t callbackBufferSize() const override;
65 65
66 float sampleRate() const override { return m_renderTarget->sampleRate(); } 66 double sampleRate() const override { return m_renderTarget->sampleRate(); }
67 int framesPerBuffer() const override {
68 NOTREACHED();
69 return 0;
70 }
67 71
68 size_t renderQuantumFrames() const { 72 size_t renderQuantumFrames() const {
69 return AudioUtilities::kRenderQuantumFrames; 73 return AudioUtilities::kRenderQuantumFrames;
70 } 74 }
71 75
72 WebThread* offlineRenderThread(); 76 WebThread* offlineRenderThread();
73 77
74 private: 78 private:
75 OfflineAudioDestinationHandler(AudioNode&, AudioBuffer* renderTarget); 79 OfflineAudioDestinationHandler(AudioNode&, AudioBuffer* renderTarget);
76 80
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 static OfflineAudioDestinationNode* create(BaseAudioContext*, 133 static OfflineAudioDestinationNode* create(BaseAudioContext*,
130 AudioBuffer* renderTarget); 134 AudioBuffer* renderTarget);
131 135
132 private: 136 private:
133 OfflineAudioDestinationNode(BaseAudioContext&, AudioBuffer* renderTarget); 137 OfflineAudioDestinationNode(BaseAudioContext&, AudioBuffer* renderTarget);
134 }; 138 };
135 139
136 } // namespace blink 140 } // namespace blink
137 141
138 #endif // OfflineAudioDestinationNode_h 142 #endif // OfflineAudioDestinationNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698