/external/chromium_org/media/base/ |
fake_audio_render_callback.cc | 24 int FakeAudioRenderCallback::Render(AudioBus* audio_bus, 27 int number_of_frames = audio_bus->frames(); 33 audio_bus->channel(0)[i] = sin(2 * M_PI * (x_ + step_ * i)); 37 for (int i = 1; i < audio_bus->channels(); ++i) 38 memcpy(audio_bus->channel(i), audio_bus->channel(0), 39 number_of_frames * sizeof(*audio_bus->channel(i))); 44 double FakeAudioRenderCallback::ProvideInput(AudioBus* audio_bus, 46 Render(audio_bus, buffer_delay.InMillisecondsF() + 0.5);
|
audio_pull_fifo_unittest.cc | 8 #include "media/base/audio_bus.h" 62 virtual void ProvideInput(int frame_delay, AudioBus* audio_bus) { 66 EXPECT_EQ(audio_bus->channels(), audio_bus_->channels()); 67 EXPECT_EQ(audio_bus->frames(), kMaxFramesInFifo); 68 for (int i = 0; i < audio_bus->frames(); ++i) { 69 for (int j = 0; j < audio_bus->channels(); ++j) { 71 audio_bus->channel(j)[i] = fill_value_;
|
fake_audio_render_callback.h | 29 virtual int Render(AudioBus* audio_bus, 34 virtual double ProvideInput(AudioBus* audio_bus,
|
multi_channel_resampler.h | 26 typedef base::Callback<void(int frame_delay, AudioBus* audio_bus)> ReadCB; 39 void Resample(int frames, AudioBus* audio_bus);
|
audio_hash.h | 38 void Update(const AudioBus* audio_bus, int frames);
|
audio_renderer_mixer_input.cc | 97 double AudioRendererMixerInput::ProvideInput(AudioBus* audio_bus, 100 audio_bus, static_cast<int>(buffer_delay.InMillisecondsF() + 0.5)); 103 if (frames_filled < audio_bus->frames()) { 104 audio_bus->ZeroFramesPartial( 105 frames_filled, audio_bus->frames() - frames_filled);
|
multi_channel_resampler.cc | 10 #include "media/base/audio_bus.h" 45 void MultiChannelResampler::Resample(int frames, AudioBus* audio_bus) { 46 DCHECK_EQ(static_cast<size_t>(audio_bus->channels()), resamplers_.size()); 49 if (audio_bus->channels() == 1) { 50 resamplers_[0]->Resample(frames, audio_bus->channel(0)); 74 frames_this_time, audio_bus->channel(i) + output_frames_ready_);
|
audio_pull_fifo.h | 25 typedef base::Callback<void(int frame_delay, AudioBus* audio_bus)> ReadCB;
|
audio_converter.h | 52 // Method for providing more data into the converter. Expects |audio_bus| 58 virtual double ProvideInput(AudioBus* audio_bus, 98 void ProvideInput(int resampler_frame_delay, AudioBus* audio_bus); 102 void SourceCallback(int fifo_frame_delay, AudioBus* audio_bus);
|
audio_hash.cc | 12 #include "media/base/audio_bus.h" 24 void AudioHash::Update(const AudioBus* audio_bus, int frames) { 26 for (uint32 ch = 0; ch < static_cast<uint32>(audio_bus->channels()); ++ch) { 27 const float* channel = audio_bus->channel(ch);
|
multi_channel_resampler_unittest.cc | 11 #include "media/base/audio_bus.h" 52 virtual void ProvideInput(int frame_delay, AudioBus* audio_bus) { 57 EXPECT_EQ(audio_bus->channels(), audio_bus_->channels()); 58 for (int i = 0; i < audio_bus->channels(); ++i) 59 for (int j = 0; j < audio_bus->frames(); ++j) 60 audio_bus->channel(i)[j] = fill_value;
|
audio_renderer_mixer.cc | 74 int AudioRendererMixer::Render(AudioBus* audio_bus, 90 base::TimeDelta::FromMilliseconds(audio_delay_milliseconds), audio_bus); local 91 return audio_bus->frames();
|
/external/chromium_org/media/audio/ |
simple_sources_unittest.cc | 12 #include "media/base/audio_bus.h" 28 scoped_ptr<AudioBus> audio_bus = AudioBus::Create(params); local 29 source.OnMoreData(audio_bus.get(), AudioBuffersState()); 36 EXPECT_NEAR(0, audio_bus->channel(0)[0], 38 EXPECT_FLOAT_EQ(0.15643446f, audio_bus->channel(0)[1]); 39 EXPECT_LT(audio_bus->channel(0)[1], audio_bus->channel(0)[2]); 40 EXPECT_LT(audio_bus->channel(0)[2], audio_bus->channel(0)[3]); 42 EXPECT_NEAR(0, audio_bus->channel(0)[half_period] 57 scoped_ptr<AudioBus> audio_bus = AudioBus::Create(1, 2 * kSampleCap); local [all...] |
simple_sources.cc | 31 int SineWaveAudioSource::OnMoreData(AudioBus* audio_bus, 41 std::min(audio_bus->frames(), cap_ - time_state_) : audio_bus->frames(); 43 audio_bus->channel(0)[i] = sin(2.0 * M_PI * f_ * time_state_++); 44 for (int i = 1; i < audio_bus->channels(); ++i) { 45 memcpy(audio_bus->channel(i), audio_bus->channel(0), 46 max_frames * sizeof(*audio_bus->channel(i)));
|
mock_audio_source_callback.h | 18 MOCK_METHOD2(OnMoreData, int(AudioBus* audio_bus,
|
virtual_audio_output_stream.cc | 74 double VirtualAudioOutputStream::ProvideInput(AudioBus* audio_bus, 80 const int frames = callback_->OnMoreData(audio_bus, AudioBuffersState()); 81 if (frames < audio_bus->frames()) 82 audio_bus->ZeroFramesPartial(frames, audio_bus->frames() - frames);
|
fake_audio_consumer.h | 35 typedef base::Callback<void(AudioBus* audio_bus)> ReadCB;
|
simple_sources.h | 30 virtual int OnMoreData(AudioBus* audio_bus,
|
null_audio_sink.cc | 72 void NullAudioSink::CallRender(AudioBus* audio_bus) { 75 int frames_received = callback_->Render(audio_bus, 0); 79 audio_hash_->Update(audio_bus, frames_received);
|
fake_audio_output_stream.h | 39 void CallOnMoreData(AudioBus* audio_bus);
|
/external/chromium_org/media/filters/ |
audio_file_reader.cc | 11 #include "media/base/audio_bus.h" 110 int AudioFileReader::Read(AudioBus* audio_bus) { 114 DCHECK_EQ(audio_bus->channels(), channels()); 115 if (audio_bus->channels() != channels()) 128 while (current_frame < audio_bus->frames() && continue_decoding && 186 if (current_frame + frames_read > audio_bus->frames()) { 188 frames_read = audio_bus->frames() - current_frame; 196 int channels = audio_bus->channels(); 198 float* bus_data = audio_bus->channel(ch) + current_frame; 205 for (int ch = 0; ch < audio_bus->channels(); ++ch) [all...] |
/external/chromium_org/media/cast/receiver/ |
audio_decoder_unittest.cc | 83 const scoped_ptr<AudioBus> audio_bus( 86 // Encode |audio_bus| into |encoded_frame->data|. 87 const int num_elements = audio_bus->channels() * audio_bus->frames(); 89 audio_bus->ToInterleaved( 90 audio_bus->frames(), sizeof(int16), &interleaved.front()); 105 audio_bus->frames(), 143 scoped_ptr<AudioBus> audio_bus, 147 // A NULL |audio_bus| indicates a decode error, which we don't expect. 148 ASSERT_FALSE(!audio_bus); [all...] |
audio_decoder.cc | 130 scoped_ptr<AudioBus> audio_bus; variable 134 return audio_bus.Pass(); // Decode error. 138 audio_bus = AudioBus::Create(num_channels_, num_samples_decoded).Pass(); 143 float* dest = audio_bus->channel(ch); 147 return audio_bus.Pass(); 181 scoped_ptr<AudioBus> audio_bus; variable 184 return audio_bus.Pass(); 193 audio_bus = AudioBus::Create(num_channels_, num_samples).Pass(); 194 audio_bus->FromInterleaved(pcm_data, num_samples, sizeof(int16)); 195 return audio_bus.Pass() [all...] |
/external/chromium_org/media/cast/audio_sender/ |
audio_encoder.cc | 15 #include "media/base/audio_bus.h" 73 void EncodeAudio(scoped_ptr<AudioBus> audio_bus, 106 // Encode all audio in |audio_bus| into zero or more frames. 108 while (src_pos < audio_bus->frames()) { 110 samples_per_frame_ - buffer_fill_end_, audio_bus->frames() - src_pos); 111 DCHECK_EQ(audio_bus->channels(), num_channels_); 113 audio_bus.get(), src_pos, buffer_fill_end_, num_samples_to_xfer); 147 virtual void TransferSamplesIntoBuffer(const AudioBus* audio_bus, 229 virtual void TransferSamplesIntoBuffer(const AudioBus* audio_bus, 234 for (int ch = 0; ch < audio_bus->channels(); ++ch) [all...] |
/external/chromium_org/content/renderer/media/ |
webrtc_local_audio_source_provider.cc | 141 media::AudioBus* audio_bus, base::TimeDelta buffer_delay) { 142 if (fifo_->frames() >= audio_bus->frames()) { 143 fifo_->Consume(audio_bus, 0, audio_bus->frames()); 145 audio_bus->Zero(); 147 << " samples but " << audio_bus->frames()
|