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

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

Issue 2839063003: Implement tail processing for AudioNodes (Closed)
Patch Set: Make declaration order consistent Created 3 years, 5 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, Google Inc. All rights reserved. 2 * Copyright (C) 2012, 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void Process(size_t frames_to_process) override; 50 void Process(size_t frames_to_process) override;
51 51
52 // AudioNode 52 // AudioNode
53 double TailTime() const override { return 0; } 53 double TailTime() const override { return 0; }
54 double LatencyTime() const override { return 0; } 54 double LatencyTime() const override { return 0; }
55 55
56 // A helper for AudioSourceProviderClient implementation of 56 // A helper for AudioSourceProviderClient implementation of
57 // MediaStreamAudioSourceNode. 57 // MediaStreamAudioSourceNode.
58 void SetFormat(size_t number_of_channels, float sample_rate); 58 void SetFormat(size_t number_of_channels, float sample_rate);
59 59
60 bool RequiresTailProcessing() const override { return false; }
61
60 private: 62 private:
61 MediaStreamAudioSourceHandler(AudioNode&, 63 MediaStreamAudioSourceHandler(AudioNode&,
62 std::unique_ptr<AudioSourceProvider>); 64 std::unique_ptr<AudioSourceProvider>);
63 65
64 // As an audio source, we will never propagate silence. 66 // As an audio source, we will never propagate silence.
65 bool PropagatesSilence() const override { return false; } 67 bool PropagatesSilence() const override { return false; }
66 68
67 AudioSourceProvider* GetAudioSourceProvider() const { 69 AudioSourceProvider* GetAudioSourceProvider() const {
68 return audio_source_provider_.get(); 70 return audio_source_provider_.get();
69 } 71 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 106
105 MediaStreamAudioSourceHandler& GetMediaStreamAudioSourceHandler() const; 107 MediaStreamAudioSourceHandler& GetMediaStreamAudioSourceHandler() const;
106 108
107 Member<MediaStreamTrack> audio_track_; 109 Member<MediaStreamTrack> audio_track_;
108 Member<MediaStream> media_stream_; 110 Member<MediaStream> media_stream_;
109 }; 111 };
110 112
111 } // namespace blink 113 } // namespace blink
112 114
113 #endif // MediaStreamAudioSourceNode_h 115 #endif // MediaStreamAudioSourceNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698