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

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

Issue 2501863003: Support for AudioContextOptions latencyHint. (Closed)
Patch Set: Updates based on reviewer comments. Created 4 years 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void initialize() override; 52 void initialize() override;
53 void uninitialize() override; 53 void uninitialize() override;
54 54
55 OfflineAudioContext* context() const final; 55 OfflineAudioContext* context() const final;
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 float sampleRate() const override { return m_renderTarget->sampleRate(); } 62 double sampleRate() const override { return m_renderTarget->sampleRate(); }
63 int framesPerBuffer() const override { return 0; }
o1ka 2016/12/02 12:02:13 Is it never expected to be called? DCHECK?
hongchan 2016/12/02 17:40:12 Or NOTREACHED().
Andrew MacPherson 2016/12/05 14:12:53 Done.
63 64
64 size_t renderQuantumFrames() const { 65 size_t renderQuantumFrames() const {
65 return AudioUtilities::kRenderQuantumFrames; 66 return AudioUtilities::kRenderQuantumFrames;
66 } 67 }
67 68
68 WebThread* offlineRenderThread(); 69 WebThread* offlineRenderThread();
69 70
70 private: 71 private:
71 OfflineAudioDestinationHandler(AudioNode&, AudioBuffer* renderTarget); 72 OfflineAudioDestinationHandler(AudioNode&, AudioBuffer* renderTarget);
72 73
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 static OfflineAudioDestinationNode* create(BaseAudioContext*, 126 static OfflineAudioDestinationNode* create(BaseAudioContext*,
126 AudioBuffer* renderTarget); 127 AudioBuffer* renderTarget);
127 128
128 private: 129 private:
129 OfflineAudioDestinationNode(BaseAudioContext&, AudioBuffer* renderTarget); 130 OfflineAudioDestinationNode(BaseAudioContext&, AudioBuffer* renderTarget);
130 }; 131 };
131 132
132 } // namespace blink 133 } // namespace blink
133 134
134 #endif // OfflineAudioDestinationNode_h 135 #endif // OfflineAudioDestinationNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698