Home
last modified time | relevance | path

Searched refs:AudioPacket (Results 1 – 25 of 37) sorted by relevance

12

/external/chromium_org/remoting/codec/
Daudio_encoder_opus_unittest.cc30 AudioPacket::SAMPLING_RATE_48000;
55 AudioPacket::SamplingRate rate, in GetSampleValue()
66 scoped_ptr<AudioPacket> CreatePacket( in CreatePacket()
68 AudioPacket::SamplingRate rate, in CreatePacket()
77 scoped_ptr<AudioPacket> packet(new AudioPacket()); in CreatePacket()
80 packet->set_encoding(AudioPacket::ENCODING_RAW); in CreatePacket()
82 packet->set_bytes_per_sample(AudioPacket::BYTES_PER_SAMPLE_2); in CreatePacket()
83 packet->set_channels(AudioPacket::CHANNELS_STEREO); in CreatePacket()
107 AudioPacket::SamplingRate rate, in ValidateReceivedData()
129 AudioPacket::SamplingRate rate) { in TestEncodeDecode()
[all …]
Daudio_decoder_opus.cc23 const AudioPacket::SamplingRate kSamplingRate =
24 AudioPacket::SAMPLING_RATE_48000;
54 bool AudioDecoderOpus::ResetForPacket(AudioPacket* packet) { in ResetForPacket()
79 scoped_ptr<AudioPacket> AudioDecoderOpus::Decode( in Decode()
80 scoped_ptr<AudioPacket> packet) { in Decode()
81 if (packet->encoding() != AudioPacket::ENCODING_OPUS) { in Decode()
84 return scoped_ptr<AudioPacket>(); in Decode()
88 return scoped_ptr<AudioPacket>(); in Decode()
92 return scoped_ptr<AudioPacket>(); in Decode()
96 scoped_ptr<AudioPacket> decoded_packet(new AudioPacket()); in Decode()
[all …]
Daudio_decoder_verbatim.cc18 scoped_ptr<AudioPacket> AudioDecoderVerbatim::Decode( in Decode()
19 scoped_ptr<AudioPacket> packet) { in Decode()
21 if ((packet->encoding() != AudioPacket::ENCODING_RAW) || in Decode()
23 (packet->sampling_rate() == AudioPacket::SAMPLING_RATE_INVALID) || in Decode()
24 (packet->bytes_per_sample() != AudioPacket::BYTES_PER_SAMPLE_2) || in Decode()
25 (packet->channels() != AudioPacket::CHANNELS_STEREO) || in Decode()
27 (AudioPacket::CHANNELS_STEREO * AudioPacket::BYTES_PER_SAMPLE_2) != 0)) { in Decode()
29 return scoped_ptr<AudioPacket>(); in Decode()
Daudio_encoder_opus.cc22 const AudioPacket::SamplingRate kOpusSamplingRate =
23 AudioPacket::SAMPLING_RATE_48000;
33 const AudioPacket::BytesPerSample kBytesPerSample =
34 AudioPacket::BYTES_PER_SAMPLE_2;
44 channels_(AudioPacket::CHANNELS_STEREO), in AudioEncoderOpus()
102 bool AudioEncoderOpus::ResetForPacket(AudioPacket* packet) { in ResetForPacket()
137 scoped_ptr<AudioPacket> AudioEncoderOpus::Encode( in Encode()
138 scoped_ptr<AudioPacket> packet) { in Encode()
139 DCHECK_EQ(AudioPacket::ENCODING_RAW, packet->encoding()); in Encode()
145 return scoped_ptr<AudioPacket>(); in Encode()
[all …]
Daudio_encoder_verbatim.cc16 scoped_ptr<AudioPacket> AudioEncoderVerbatim::Encode( in Encode()
17 scoped_ptr<AudioPacket> packet) { in Encode()
18 DCHECK_EQ(AudioPacket::ENCODING_RAW, packet->encoding()); in Encode()
20 DCHECK_NE(AudioPacket::SAMPLING_RATE_INVALID, packet->sampling_rate()); in Encode()
21 DCHECK_NE(AudioPacket::BYTES_PER_SAMPLE_INVALID, packet->bytes_per_sample()); in Encode()
22 DCHECK_NE(AudioPacket::CHANNELS_INVALID, packet->channels()); in Encode()
Daudio_encoder_opus.h21 class AudioPacket; variable
29 virtual scoped_ptr<AudioPacket> Encode(
30 scoped_ptr<AudioPacket> packet) OVERRIDE;
35 bool ResetForPacket(AudioPacket* packet);
41 AudioPacket::Channels channels_;
Daudio_decoder_opus.h16 class AudioPacket; variable
24 virtual scoped_ptr<AudioPacket> Decode(
25 scoped_ptr<AudioPacket> packet) OVERRIDE;
30 bool ResetForPacket(AudioPacket* packet);
Daudio_encoder.h12 class AudioPacket; variable
18 virtual scoped_ptr<AudioPacket> Encode(scoped_ptr<AudioPacket> packet) = 0;
Daudio_decoder_verbatim.h14 class AudioPacket; variable
22 virtual scoped_ptr<AudioPacket> Decode(
23 scoped_ptr<AudioPacket> packet) OVERRIDE;
Daudio_encoder_verbatim.h12 class AudioPacket; variable
20 virtual scoped_ptr<AudioPacket> Encode(
21 scoped_ptr<AudioPacket> packet) OVERRIDE;
Daudio_decoder.h16 class AudioPacket; variable
27 virtual scoped_ptr<AudioPacket> Decode(scoped_ptr<AudioPacket> packet) = 0;
/external/chromium_org/remoting/client/
Daudio_player_unittest.cc32 virtual bool ResetAudioPlayer(AudioPacket::SamplingRate) OVERRIDE { in ResetAudioPlayer()
92 scoped_ptr<AudioPacket> CreatePacketWithSamplingRate( in CreatePacketWithSamplingRate()
93 AudioPacket::SamplingRate rate, int samples) { in CreatePacketWithSamplingRate()
94 scoped_ptr<AudioPacket> packet(new AudioPacket()); in CreatePacketWithSamplingRate()
95 packet->set_encoding(AudioPacket::ENCODING_RAW); in CreatePacketWithSamplingRate()
97 packet->set_bytes_per_sample(AudioPacket::BYTES_PER_SAMPLE_2); in CreatePacketWithSamplingRate()
98 packet->set_channels(AudioPacket::CHANNELS_STEREO); in CreatePacketWithSamplingRate()
108 scoped_ptr<AudioPacket> CreatePacket44100Hz(int samples) { in CreatePacket44100Hz()
109 return CreatePacketWithSamplingRate(AudioPacket::SAMPLING_RATE_44100, in CreatePacket44100Hz()
113 scoped_ptr<AudioPacket> CreatePacket48000Hz(int samples) { in CreatePacket48000Hz()
[all …]
Daudio_decode_scheduler.cc23 void ProcessAudioPacket(scoped_ptr<AudioPacket> packet,
35 void DecodePacket(scoped_ptr<AudioPacket> packet, const base::Closure& done);
38 void ProcessDecodedPacket(scoped_ptr<AudioPacket> packet,
68 scoped_ptr<AudioPacket> packet, in ProcessAudioPacket()
82 scoped_ptr<AudioPacket> packet, in DecodePacket()
85 scoped_ptr<AudioPacket> decoded_packet = decoder_->Decode(packet.Pass()); in DecodePacket()
93 scoped_ptr<AudioPacket> packet, in ProcessDecodedPacket()
118 void AudioDecodeScheduler::ProcessAudioPacket(scoped_ptr<AudioPacket> packet, in ProcessAudioPacket()
Daudio_player.h20 void ProcessAudioPacket(scoped_ptr<AudioPacket> packet);
30 virtual bool ResetAudioPlayer(AudioPacket::SamplingRate sampling_rate) = 0;
40 typedef std::list<AudioPacket*> AudioPacketQueue;
45 AudioPacket::SamplingRate sampling_rate_;
Daudio_player.cc23 : sampling_rate_(AudioPacket::SAMPLING_RATE_INVALID), in AudioPlayer()
34 void AudioPlayer::ProcessAudioPacket(scoped_ptr<AudioPacket> packet) { in ProcessAudioPacket()
36 DCHECK_EQ(AudioPacket::ENCODING_RAW, packet->encoding()); in ProcessAudioPacket()
37 DCHECK_NE(AudioPacket::SAMPLING_RATE_INVALID, packet->sampling_rate()); in ProcessAudioPacket()
/external/chromium_org/remoting/host/
Daudio_capturer_linux.cc18 const AudioPacket_SamplingRate kSamplingRate = AudioPacket::SAMPLING_RATE_48000;
48 silence_detector_.Reset(kSamplingRate, AudioPacket::CHANNELS_STEREO); in Start()
72 scoped_ptr<AudioPacket> packet(new AudioPacket()); in OnDataRead()
74 packet->set_encoding(AudioPacket::ENCODING_RAW); in OnDataRead()
76 packet->set_bytes_per_sample(AudioPacket::BYTES_PER_SAMPLE_2); in OnDataRead()
77 packet->set_channels(AudioPacket::CHANNELS_STEREO); in OnDataRead()
Daudio_capturer_win.cc41 : sampling_rate_(AudioPacket::SAMPLING_RATE_INVALID), in AudioCapturerWin()
119 sampling_rate_ = static_cast<AudioPacket::SamplingRate>( in Start()
140 sampling_rate_ = static_cast<AudioPacket::SamplingRate>( in Start()
248 scoped_ptr<AudioPacket> packet = in DoCapture()
249 scoped_ptr<AudioPacket>(new AudioPacket()); in DoCapture()
251 packet->set_encoding(AudioPacket::ENCODING_RAW); in DoCapture()
253 packet->set_bytes_per_sample(AudioPacket::BYTES_PER_SAMPLE_2); in DoCapture()
254 packet->set_channels(AudioPacket::CHANNELS_STEREO); in DoCapture()
Daudio_scheduler.h23 class AudioPacket; variable
64 void EncodeAudioPacket(scoped_ptr<AudioPacket> packet);
67 void SendAudioPacket(scoped_ptr<AudioPacket> packet);
Daudio_capturer.cc15 case AudioPacket::SAMPLING_RATE_44100: in IsValidSampleRate()
16 case AudioPacket::SAMPLING_RATE_48000: in IsValidSampleRate()
Daudio_capturer.h13 class AudioPacket; variable
17 typedef base::Callback<void(scoped_ptr<AudioPacket> packet)>
Daudio_scheduler.cc82 void AudioScheduler::EncodeAudioPacket(scoped_ptr<AudioPacket> packet) { in EncodeAudioPacket()
89 scoped_ptr<AudioPacket> encoded_packet = in EncodeAudioPacket()
100 void AudioScheduler::SendAudioPacket(scoped_ptr<AudioPacket> packet) { in SendAudioPacket()
/external/chromium_org/remoting/protocol/
Daudio_reader.h37 explicit AudioReader(AudioPacket::Encoding encoding);
39 void OnNewData(scoped_ptr<AudioPacket> packet,
42 AudioPacket::Encoding encoding_;
44 ProtobufMessageReader<AudioPacket> reader_;
Daudio_reader.cc16 AudioReader::AudioReader(AudioPacket::Encoding encoding) in AudioReader()
30 return scoped_ptr<AudioReader>(new AudioReader(AudioPacket::ENCODING_RAW)); in Create()
38 void AudioReader::OnNewData(scoped_ptr<AudioPacket> packet, in OnNewData()
Daudio_stub.h13 class AudioPacket; variable
21 virtual void ProcessAudioPacket(scoped_ptr<AudioPacket> audio_packet,
/external/chromium_org/remoting/client/plugin/
Dpepper_audio_player.cc30 AudioPacket::SamplingRate sampling_rate) { in ResetAudioPlayer()
33 case AudioPacket::SAMPLING_RATE_44100: in ResetAudioPlayer()
36 case AudioPacket::SAMPLING_RATE_48000: in ResetAudioPlayer()

12