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

Side by Side Diff: components/copresence/mediums/audio/audio_player_stub.cc

Issue 637223011: Redesign the copresence audio handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 1 month 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698