| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 namespace webrtc { | 25 namespace webrtc { |
| 26 class FilePlayerImpl : public FilePlayer | 26 class FilePlayerImpl : public FilePlayer |
| 27 { | 27 { |
| 28 public: | 28 public: |
| 29 FilePlayerImpl(uint32_t instanceID, FileFormats fileFormat); | 29 FilePlayerImpl(uint32_t instanceID, FileFormats fileFormat); |
| 30 ~FilePlayerImpl(); | 30 ~FilePlayerImpl(); |
| 31 | 31 |
| 32 virtual int Get10msAudioFromFile( | 32 virtual int Get10msAudioFromFile( |
| 33 int16_t* outBuffer, | 33 int16_t* outBuffer, |
| 34 int& lengthInSamples, | 34 size_t& lengthInSamples, |
| 35 int frequencyInHz); | 35 int frequencyInHz); |
| 36 virtual int32_t RegisterModuleFileCallback(FileCallback* callback); | 36 virtual int32_t RegisterModuleFileCallback(FileCallback* callback); |
| 37 virtual int32_t StartPlayingFile( | 37 virtual int32_t StartPlayingFile( |
| 38 const char* fileName, | 38 const char* fileName, |
| 39 bool loop, | 39 bool loop, |
| 40 uint32_t startPosition, | 40 uint32_t startPosition, |
| 41 float volumeScaling, | 41 float volumeScaling, |
| 42 uint32_t notification, | 42 uint32_t notification, |
| 43 uint32_t stopPosition = 0, | 43 uint32_t stopPosition = 0, |
| 44 const CodecInst* codecInst = NULL); | 44 const CodecInst* codecInst = NULL); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 70 | 70 |
| 71 CodecInst _codec; | 71 CodecInst _codec; |
| 72 int32_t _numberOf10MsPerFrame; | 72 int32_t _numberOf10MsPerFrame; |
| 73 int32_t _numberOf10MsInDecoder; | 73 int32_t _numberOf10MsInDecoder; |
| 74 | 74 |
| 75 Resampler _resampler; | 75 Resampler _resampler; |
| 76 float _scaling; | 76 float _scaling; |
| 77 }; | 77 }; |
| 78 } // namespace webrtc | 78 } // namespace webrtc |
| 79 #endif // WEBRTC_MODULES_UTILITY_SOURCE_FILE_PLAYER_IMPL_H_ | 79 #endif // WEBRTC_MODULES_UTILITY_SOURCE_FILE_PLAYER_IMPL_H_ |
| OLD | NEW |