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

Side by Side Diff: media/audio/fake_audio_input_stream.h

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // A fake implementation of AudioInputStream, useful for testing purpose. 5 // A fake implementation of AudioInputStream, useful for testing purpose.
6 6
7 #ifndef MEDIA_AUDIO_FAKE_AUDIO_INPUT_STREAM_H_ 7 #ifndef MEDIA_AUDIO_FAKE_AUDIO_INPUT_STREAM_H_
8 #define MEDIA_AUDIO_FAKE_AUDIO_INPUT_STREAM_H_ 8 #define MEDIA_AUDIO_FAKE_AUDIO_INPUT_STREAM_H_
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "media/audio/audio_io.h" 14 #include "media/audio/audio_io.h"
15 #include "media/audio/audio_parameters.h" 15 #include "media/audio/audio_parameters.h"
16 #include "media/audio/fake_audio_worker.h" 16 #include "media/audio/fake_audio_worker.h"
17 17
18
19 namespace media { 18 namespace media {
20 19
21 class AudioBus; 20 class AudioBus;
22 class AudioManagerBase; 21 class AudioManagerBase;
23 class SimpleSource; 22 class SimpleSource;
24 23
25 // This class acts as a fake audio input stream. The default is to generate a 24 // This class acts as a fake audio input stream. The default is to generate a
26 // beeping sound unless --use-file-for-fake-audio-capture=<file> is specified, 25 // beeping sound unless --use-file-for-fake-audio-capture=<file> is specified,
27 // in which case the indicated .wav file will be read and played into the 26 // in which case the indicated .wav file will be read and played into the
28 // stream. 27 // stream.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 69
71 scoped_ptr<AudioOutputStream::AudioSourceCallback> audio_source_; 70 scoped_ptr<AudioOutputStream::AudioSourceCallback> audio_source_;
72 scoped_ptr<media::AudioBus> audio_bus_; 71 scoped_ptr<media::AudioBus> audio_bus_;
73 72
74 DISALLOW_COPY_AND_ASSIGN(FakeAudioInputStream); 73 DISALLOW_COPY_AND_ASSIGN(FakeAudioInputStream);
75 }; 74 };
76 75
77 } // namespace media 76 } // namespace media
78 77
79 #endif // MEDIA_AUDIO_FAKE_AUDIO_INPUT_STREAM_H_ 78 #endif // MEDIA_AUDIO_FAKE_AUDIO_INPUT_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698