| Index: webrtc/api/localaudiosource.h
|
| diff --git a/webrtc/api/localaudiosource.h b/webrtc/api/localaudiosource.h
|
| index d463d1ccd837113e2fc90c7203c8148e7b9e5054..e4de650537fca67ba53bd3105e261b1cf6034956 100644
|
| --- a/webrtc/api/localaudiosource.h
|
| +++ b/webrtc/api/localaudiosource.h
|
| @@ -31,7 +31,11 @@ class LocalAudioSource : public Notifier<AudioSourceInterface> {
|
| const PeerConnectionFactoryInterface::Options& options,
|
| const MediaConstraintsInterface* constraints);
|
|
|
| - SourceState state() const override { return source_state_; }
|
| + static rtc::scoped_refptr<LocalAudioSource> Create(
|
| + const PeerConnectionFactoryInterface::Options& options,
|
| + const cricket::AudioOptions* audio_options);
|
| +
|
| + SourceState state() const override { return kLive; }
|
| bool remote() const override { return false; }
|
|
|
| virtual const cricket::AudioOptions& options() const { return options_; }
|
| @@ -40,15 +44,16 @@ class LocalAudioSource : public Notifier<AudioSourceInterface> {
|
| void RemoveSink(AudioTrackSinkInterface* sink) override {}
|
|
|
| protected:
|
| - LocalAudioSource() : source_state_(kInitializing) {}
|
| + LocalAudioSource() {}
|
| ~LocalAudioSource() override {}
|
|
|
| private:
|
| void Initialize(const PeerConnectionFactoryInterface::Options& options,
|
| const MediaConstraintsInterface* constraints);
|
| + void Initialize(const PeerConnectionFactoryInterface::Options& options,
|
| + const cricket::AudioOptions* audio_options);
|
|
|
| cricket::AudioOptions options_;
|
| - SourceState source_state_;
|
| };
|
|
|
| } // namespace webrtc
|
|
|