| 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_
|
|
|