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

Unified Diff: components/copresence/mediums/audio/audio_player.h

Issue 865483005: Creating the audio_modem component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging again Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: components/copresence/mediums/audio/audio_player.h
diff --git a/components/copresence/mediums/audio/audio_player.h b/components/copresence/mediums/audio/audio_player.h
deleted file mode 100644
index 2e9bb5d851756d58aac52755401303d20c36f9eb..0000000000000000000000000000000000000000
--- a/components/copresence/mediums/audio/audio_player.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_PLAYER_H_
-#define COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_PLAYER_H_
-
-#include <vector>
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-
-namespace media {
-class AudioBusRefCounted;
-}
-
-namespace copresence {
-
-// The AudioPlayerImpl class will play a set of samples till it is told to stop.
-class AudioPlayer {
- public:
- // Initializes the object. Do not use this object before calling this method.
- virtual void Initialize() = 0;
-
- // Play the given samples. These samples will keep on being played in a loop
- // till we explicitly tell the player to stop playing. If we are already
- // playing, this call will be ignored.
- virtual void Play(
- const scoped_refptr<media::AudioBusRefCounted>& samples) = 0;
-
- // Stop playing. If we're already stopped, this call will be ignored.
- virtual void Stop() = 0;
-
- // Cleans up and deletes this object. Do not use object after this call.
- virtual void Finalize() = 0;
-
- protected:
- virtual ~AudioPlayer() {}
-};
-
-} // namespace copresence
-
-#endif // COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_PLAYER_H_
« no previous file with comments | « components/copresence/mediums/audio/audio_manager_unittest.cc ('k') | components/copresence/mediums/audio/audio_player_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698