Fix trivial lint errors in FileRecorder and FilePlayer
Mostly, it's about replacing mutable reference arguments with pointer arguments, and replacing C style casts with C++ style casts. Review-Url: https://codereview.webrtc.org/2056653002 Cr-Commit-Position: refs/heads/master@{#13849}
This commit is contained in:
@ -24,23 +24,23 @@ class AudioFrame;
|
||||
|
||||
class AudioCoder : public AudioPacketizationCallback {
|
||||
public:
|
||||
AudioCoder(uint32_t instance_id);
|
||||
explicit AudioCoder(uint32_t instance_id);
|
||||
~AudioCoder();
|
||||
|
||||
int32_t SetEncodeCodec(const CodecInst& codec_inst);
|
||||
|
||||
int32_t SetDecodeCodec(const CodecInst& codec_inst);
|
||||
|
||||
int32_t Decode(AudioFrame& decoded_audio,
|
||||
int32_t Decode(AudioFrame* decoded_audio,
|
||||
uint32_t samp_freq_hz,
|
||||
const int8_t* incoming_payload,
|
||||
size_t payload_length);
|
||||
|
||||
int32_t PlayoutData(AudioFrame& decoded_audio, uint16_t& samp_freq_hz);
|
||||
int32_t PlayoutData(AudioFrame* decoded_audio, uint16_t samp_freq_hz);
|
||||
|
||||
int32_t Encode(const AudioFrame& audio,
|
||||
int8_t* encoded_data,
|
||||
size_t& encoded_length_in_bytes);
|
||||
size_t* encoded_length_in_bytes);
|
||||
|
||||
protected:
|
||||
int32_t SendData(FrameType frame_type,
|
||||
|
||||
Reference in New Issue
Block a user