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

Unified Diff: webrtc/modules/utility/source/file_recorder_impl.h

Issue 2035663002: Run "git cl format" on some files before I start to modify them (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@remove
Patch Set: rebase Created 4 years, 4 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: webrtc/modules/utility/source/file_recorder_impl.h
diff --git a/webrtc/modules/utility/source/file_recorder_impl.h b/webrtc/modules/utility/source/file_recorder_impl.h
index a9dd3a88633afe44bbd059cba056bcdad58dac61..fa99e9a6452ac2ddfabd65fab88cbd4b0ca37a5f 100644
--- a/webrtc/modules/utility/source/file_recorder_impl.h
+++ b/webrtc/modules/utility/source/file_recorder_impl.h
@@ -31,49 +31,45 @@
namespace webrtc {
// The largest decoded frame size in samples (60ms with 32kHz sample rate).
-enum { MAX_AUDIO_BUFFER_IN_SAMPLES = 60*32};
-enum { MAX_AUDIO_BUFFER_IN_BYTES = MAX_AUDIO_BUFFER_IN_SAMPLES*2};
+enum { MAX_AUDIO_BUFFER_IN_SAMPLES = 60 * 32 };
+enum { MAX_AUDIO_BUFFER_IN_BYTES = MAX_AUDIO_BUFFER_IN_SAMPLES * 2 };
enum { kMaxAudioBufferQueueLength = 100 };
class CriticalSectionWrapper;
-class FileRecorderImpl : public FileRecorder
-{
-public:
- FileRecorderImpl(uint32_t instanceID, FileFormats fileFormat);
- virtual ~FileRecorderImpl();
+class FileRecorderImpl : public FileRecorder {
+ public:
+ FileRecorderImpl(uint32_t instanceID, FileFormats fileFormat);
+ virtual ~FileRecorderImpl();
- // FileRecorder functions.
- int32_t RegisterModuleFileCallback(FileCallback* callback) override;
- FileFormats RecordingFileFormat() const override;
- int32_t StartRecordingAudioFile(
- const char* fileName,
- const CodecInst& codecInst,
- uint32_t notificationTimeMs) override;
- int32_t StartRecordingAudioFile(
- OutStream& destStream,
- const CodecInst& codecInst,
- uint32_t notificationTimeMs) override;
- int32_t StopRecording() override;
- bool IsRecording() const override;
- int32_t codec_info(CodecInst& codecInst) const override;
- int32_t RecordAudioToFile(const AudioFrame& frame) override;
+ // FileRecorder functions.
+ int32_t RegisterModuleFileCallback(FileCallback* callback) override;
+ FileFormats RecordingFileFormat() const override;
+ int32_t StartRecordingAudioFile(const char* fileName,
+ const CodecInst& codecInst,
+ uint32_t notificationTimeMs) override;
+ int32_t StartRecordingAudioFile(OutStream& destStream,
+ const CodecInst& codecInst,
+ uint32_t notificationTimeMs) override;
+ int32_t StopRecording() override;
+ bool IsRecording() const override;
+ int32_t codec_info(CodecInst& codecInst) const override;
+ int32_t RecordAudioToFile(const AudioFrame& frame) override;
-protected:
- int32_t WriteEncodedAudioData(const int8_t* audioBuffer,
- size_t bufferLength);
+ protected:
+ int32_t WriteEncodedAudioData(const int8_t* audioBuffer, size_t bufferLength);
- int32_t SetUpAudioEncoder();
+ int32_t SetUpAudioEncoder();
- uint32_t _instanceID;
- FileFormats _fileFormat;
- MediaFile* _moduleFile;
+ uint32_t _instanceID;
+ FileFormats _fileFormat;
+ MediaFile* _moduleFile;
-private:
- CodecInst codec_info_;
- int8_t _audioBuffer[MAX_AUDIO_BUFFER_IN_BYTES];
- AudioCoder _audioEncoder;
- Resampler _audioResampler;
+ private:
+ CodecInst codec_info_;
+ int8_t _audioBuffer[MAX_AUDIO_BUFFER_IN_BYTES];
+ AudioCoder _audioEncoder;
+ Resampler _audioResampler;
};
} // namespace webrtc
-#endif // WEBRTC_MODULES_UTILITY_SOURCE_FILE_RECORDER_IMPL_H_
+#endif // WEBRTC_MODULES_UTILITY_SOURCE_FILE_RECORDER_IMPL_H_
« no previous file with comments | « webrtc/modules/utility/source/file_player_unittests.cc ('k') | webrtc/modules/utility/source/file_recorder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698