OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/copresence/mediums/audio/audio_player_stub.h" |
| 6 |
| 7 #include "media/base/audio_bus.h" |
| 8 |
| 9 namespace copresence { |
| 10 |
| 11 AudioPlayerStub::AudioPlayerStub() : is_playing_(false) { |
| 12 } |
| 13 |
| 14 AudioPlayerStub::~AudioPlayerStub() { |
| 15 } |
| 16 |
| 17 void AudioPlayerStub::Initialize() { |
| 18 } |
| 19 |
| 20 void AudioPlayerStub::Play( |
| 21 const scoped_refptr<media::AudioBusRefCounted>& /* samples */) { |
| 22 is_playing_ = true; |
| 23 } |
| 24 |
| 25 void AudioPlayerStub::Stop() { |
| 26 is_playing_ = false; |
| 27 } |
| 28 |
| 29 void AudioPlayerStub::Finalize() { |
| 30 delete this; |
| 31 } |
| 32 |
| 33 bool AudioPlayerStub::IsPlaying() { |
| 34 return is_playing_; |
| 35 } |
| 36 |
| 37 } // namespace copresence |
OLD | NEW |