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

Side by Side Diff: media/cast/sender/audio_encoder.h

Issue 601413003: [cast] AAC encoder for OS X and iOS based on AudioConverter and AudioFile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio-remove-constants
Patch Set: Modernize to C++11 per the rules at http://chromium-cpp.appspot.com/ Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_CAST_SENDER_AUDIO_ENCODER_H_ 5 #ifndef MEDIA_CAST_SENDER_AUDIO_ENCODER_H_
6 #define MEDIA_CAST_SENDER_AUDIO_ENCODER_H_ 6 #define MEDIA_CAST_SENDER_AUDIO_ENCODER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
(...skipping 26 matching lines...) Expand all
37 37
38 int GetSamplesPerFrame() const; 38 int GetSamplesPerFrame() const;
39 39
40 void InsertAudio(scoped_ptr<AudioBus> audio_bus, 40 void InsertAudio(scoped_ptr<AudioBus> audio_bus,
41 const base::TimeTicks& recorded_time); 41 const base::TimeTicks& recorded_time);
42 42
43 private: 43 private:
44 class ImplBase; 44 class ImplBase;
45 class OpusImpl; 45 class OpusImpl;
46 class Pcm16Impl; 46 class Pcm16Impl;
47 class AacAudioConverterImpl;
miu 2014/09/29 19:54:47 nit: I would prefer this class be named either Aac
jfroy 2014/10/14 01:06:34 I've picked AppleAacImpl to emphasize that this is
47 48
48 const scoped_refptr<CastEnvironment> cast_environment_; 49 const scoped_refptr<CastEnvironment> cast_environment_;
49 scoped_refptr<ImplBase> impl_; 50 scoped_refptr<ImplBase> impl_;
50 51
51 // Used to ensure only one thread invokes InsertAudio(). 52 // Used to ensure only one thread invokes InsertAudio().
52 base::ThreadChecker insert_thread_checker_; 53 base::ThreadChecker insert_thread_checker_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(AudioEncoder); 55 DISALLOW_COPY_AND_ASSIGN(AudioEncoder);
55 }; 56 };
56 57
57 } // namespace cast 58 } // namespace cast
58 } // namespace media 59 } // namespace media
59 60
60 #endif // MEDIA_CAST_SENDER_AUDIO_ENCODER_H_ 61 #endif // MEDIA_CAST_SENDER_AUDIO_ENCODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698