| Index: components/copresence/mediums/audio/audio_player.cc
|
| diff --git a/components/copresence/mediums/audio/audio_player.cc b/components/copresence/mediums/audio/audio_player.cc
|
| index 4a734a1ed04ea56d10459c647d3741bcd9505f0e..ac9bf78344a9ed04d805ebc2957e0341948da003 100644
|
| --- a/components/copresence/mediums/audio/audio_player.cc
|
| +++ b/components/copresence/mediums/audio/audio_player.cc
|
| @@ -5,7 +5,7 @@
|
| #include "components/copresence/mediums/audio/audio_player.h"
|
|
|
| #include <algorithm>
|
| -#include <vector>
|
| +#include <string>
|
|
|
| #include "base/bind.h"
|
| #include "base/bind_helpers.h"
|
| @@ -29,7 +29,7 @@ namespace copresence {
|
| // Public methods.
|
|
|
| AudioPlayer::AudioPlayer()
|
| - : stream_(NULL), is_playing_(false), frame_index_(0) {
|
| + : is_playing_(false), stream_(NULL), frame_index_(0) {
|
| }
|
|
|
| AudioPlayer::~AudioPlayer() {
|
| @@ -56,6 +56,10 @@ void AudioPlayer::Stop() {
|
| base::Bind(&AudioPlayer::StopOnAudioThread, base::Unretained(this)));
|
| }
|
|
|
| +bool AudioPlayer::IsPlaying() {
|
| + return is_playing_;
|
| +}
|
| +
|
| void AudioPlayer::Finalize() {
|
| media::AudioManager::Get()->GetTaskRunner()->PostTask(
|
| FROM_HERE,
|
| @@ -104,7 +108,6 @@ void AudioPlayer::PlayOnAudioThread(
|
| return;
|
| }
|
|
|
| - DVLOG(2) << "Playing Audio.";
|
| is_playing_ = true;
|
| stream_->Start(this);
|
| }
|
|
|