Home
last modified time | relevance | path

Searched refs:AudioBus (Results 1 – 25 of 252) sorted by relevance

1234567891011

/external/chromium_org/media/base/
Daudio_bus.cc19 (AudioBus::kChannelAlignment - 1)) == 0U; in IsAligned()
29 ((frames * sizeof(float) + AudioBus::kChannelAlignment - 1) & in CalculateMemorySizeInternal()
30 ~(AudioBus::kChannelAlignment - 1)) / sizeof(float); in CalculateMemorySizeInternal()
43 int frames, AudioBus* dest, in FromInterleavedInternal()
63 static void ToInterleavedInternal(const AudioBus* source, int start_frame, in ToInterleavedInternal()
101 AudioBus::AudioBus(int channels, int frames) in AudioBus() function in media::AudioBus
110 size, AudioBus::kChannelAlignment))); in AudioBus()
115 AudioBus::AudioBus(int channels, int frames, float* data) in AudioBus() function in media::AudioBus
128 AudioBus::AudioBus(int frames, const std::vector<float*>& channel_data) in AudioBus() function in media::AudioBus
140 AudioBus::AudioBus(int channels) in AudioBus() function in media::AudioBus
[all …]
Daudio_bus.h22 class MEDIA_EXPORT AudioBus {
30 static scoped_ptr<AudioBus> Create(int channels, int frames);
31 static scoped_ptr<AudioBus> Create(const AudioParameters& params);
36 static scoped_ptr<AudioBus> CreateWrapper(int channels);
41 static scoped_ptr<AudioBus> WrapVector(
47 static scoped_ptr<AudioBus> WrapMemory(int channels, int frames, void* data);
48 static scoped_ptr<AudioBus> WrapMemory(const AudioParameters& params,
76 void CopyTo(AudioBus* dest) const;
85 AudioBus* dest) const;
108 friend struct base::DefaultDeleter<AudioBus>;
[all …]
Daudio_bus_unittest.cc19 static const int kFrameCount = media::AudioBus::kChannelAlignment * 32 - 1;
31 void VerifyParams(AudioBus* bus) { in VerifyParams()
43 void VerifyBusWithEpsilon(const AudioBus* result, const AudioBus* expected, in VerifyBusWithEpsilon()
61 void VerifyBus(const AudioBus* result, const AudioBus* expected) { in VerifyBus()
68 void VerifyChannelData(AudioBus* bus) { in VerifyChannelData()
71 bus->channel(i)) & (AudioBus::kChannelAlignment - 1)); in VerifyChannelData()
84 void CopyTest(AudioBus* bus1, AudioBus* bus2) { in CopyTest()
108 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kFrameCount); in TEST_F()
115 scoped_ptr<AudioBus> bus = AudioBus::Create(AudioParameters( in TEST_F()
127 sizeof(*data_[i]) * kFrameCount, AudioBus::kChannelAlignment))); in TEST_F()
[all …]
Daudio_fifo_unittest.cc41 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kMaxFrameCount / 2); in TEST_F()
49 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kMaxFrameCount); in TEST_F()
63 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kMaxFrameCount); in TEST_F()
69 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kMaxFrameCount / 2); in TEST_F()
77 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kMaxFrameCount); in TEST_F()
94 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, 1); in TEST_F()
114 scoped_ptr<AudioBus> bus2 = in TEST_F()
115 AudioBus::Create(kChannels, (kMaxFrameCount / 4) - 1); in TEST_F()
135 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kFrameCount); in TEST_F()
Daudio_converter.h31 class AudioBus; variable
58 virtual double ProvideInput(AudioBus* audio_bus,
79 void Convert(AudioBus* dest);
80 void ConvertWithDelay(const base::TimeDelta& initial_delay, AudioBus* dest);
93 void ProvideInput(int resampler_frame_delay, AudioBus* audio_bus);
97 void SourceCallback(int fifo_frame_delay, AudioBus* audio_bus);
113 scoped_ptr<AudioBus> unmixed_audio_;
116 scoped_ptr<AudioBus> mixer_input_audio_bus_;
Daudio_buffer_unittest.cc73 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); in TEST()
92 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); in TEST()
98 bus = AudioBus::Create(channels, 100); in TEST()
117 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); in TEST()
139 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); in TEST()
145 bus = AudioBus::Create(channels, 100); in TEST()
162 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); in TEST()
168 bus = AudioBus::Create(channels, 100); in TEST()
201 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); in TEST()
209 bus = AudioBus::Create(channels, 100); in TEST()
[all …]
Daudio_pull_fifo.h12 class AudioBus; variable
25 typedef base::Callback<void(int frame_delay, AudioBus* audio_bus)> ReadCB;
38 void Consume(AudioBus* destination, int frames_to_consume);
46 int ReadFromFifo(AudioBus* destination, int frames_to_provide, int write_pos);
52 scoped_ptr<AudioBus> fifo_;
Daudio_buffer_queue_unittest.cc76 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); in TEST()
156 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); in TEST()
192 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); in TEST()
216 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); in TEST()
238 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); in TEST()
265 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); in TEST()
289 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); in TEST()
319 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); in TEST()
338 scoped_ptr<AudioBus> bus1 = AudioBus::Create(channels, 100); in TEST()
345 scoped_ptr<AudioBus> bus2 = AudioBus::Create(channels, 100); in TEST()
[all …]
Daudio_hash_unittest.cc19 : bus_one_(AudioBus::Create(kChannelCount, kFrameCount)), in AudioHashTest()
20 bus_two_(AudioBus::Create(kChannelCount, kFrameCount)), in AudioHashTest()
28 void GenerateUniqueChannels(AudioBus* audio_bus) { in GenerateUniqueChannels()
30 scoped_ptr<AudioBus> wrapped_bus = AudioBus::CreateWrapper(1); in GenerateUniqueChannels()
44 scoped_ptr<AudioBus> bus_one_;
45 scoped_ptr<AudioBus> bus_two_;
83 scoped_ptr<AudioBus> swapped_ch_bus = AudioBus::CreateWrapper(channels); in TEST_F()
134 scoped_ptr<AudioBus> half_bus = AudioBus::CreateWrapper(channels); in TEST_F()
Dmulti_channel_resampler.h16 class AudioBus; variable
26 typedef base::Callback<void(int frame_delay, AudioBus* audio_bus)> ReadCB;
39 void Resample(int frames, AudioBus* audio_bus);
62 scoped_ptr<AudioBus> resampler_audio_bus_;
66 scoped_ptr<AudioBus> wrapped_resampler_audio_bus_;
/external/chromium_org/third_party/WebKit/Source/platform/audio/
DAudioBus.h43 class PLATFORM_EXPORT AudioBus : public ThreadSafeRefCounted<AudioBus> {
44 WTF_MAKE_NONCOPYABLE(AudioBus);
69 …static PassRefPtr<AudioBus> create(unsigned numberOfChannels, size_t length, bool allocate = true);
78 …const AudioChannel* channel(unsigned channel) const { return const_cast<AudioBus*>(this)->m_channe… in channel()
103 bool topologyMatches(const AudioBus &sourceBus) const;
107 …static PassRefPtr<AudioBus> createBufferFromRange(const AudioBus* sourceBuffer, unsigned startFram…
113 …static PassRefPtr<AudioBus> createBySampleRateConverting(const AudioBus* sourceBus, bool mixToMono…
117 static PassRefPtr<AudioBus> createByMixingToMono(const AudioBus* sourceBus);
126 void copyFrom(const AudioBus& sourceBus, ChannelInterpretation = Speakers);
130 void sumFrom(const AudioBus& sourceBus, ChannelInterpretation = Speakers);
[all …]
DAudioBus.cpp50 PassRefPtr<AudioBus> AudioBus::create(unsigned numberOfChannels, size_t length, bool allocate) in create()
56 return adoptRef(new AudioBus(numberOfChannels, length, allocate)); in create()
59 AudioBus::AudioBus(unsigned numberOfChannels, size_t length, bool allocate) in AudioBus() function in WebCore::AudioBus
75 void AudioBus::setChannelMemory(unsigned channelIndex, float* storage, size_t length) in setChannelMemory()
83 void AudioBus::resizeSmaller(size_t newLength) in resizeSmaller()
93 void AudioBus::zero() in zero()
99 AudioChannel* AudioBus::channelByType(unsigned channelType) in channelByType()
153 const AudioChannel* AudioBus::channelByType(unsigned type) const in channelByType()
155 return const_cast<AudioBus*>(this)->channelByType(type); in channelByType()
159 bool AudioBus::topologyMatches(const AudioBus& bus) const in topologyMatches()
[all …]
DReverb.h38 class AudioBus; variable
48 …Reverb(AudioBus* impulseResponseBuffer, size_t renderSliceSize, size_t maxFFTSize, size_t numberOf…
50 void process(const AudioBus* sourceBus, AudioBus* destinationBus, size_t framesToProcess);
57 …void initialize(AudioBus* impulseResponseBuffer, size_t renderSliceSize, size_t maxFFTSize, size_t…
64 RefPtr<AudioBus> m_tempBuffer;
DHRTFElevation.cpp64 static PassRefPtr<AudioBus> getConcatenatedImpulseResponsesForSubject(const String& subjectName) in getConcatenatedImpulseResponsesForSubject()
66 typedef HashMap<String, RefPtr<AudioBus> > AudioBusMap; in getConcatenatedImpulseResponsesForSubject()
71 RefPtr<AudioBus> bus; in getConcatenatedImpulseResponsesForSubject()
74 …RefPtr<AudioBus> concatenatedImpulseResponses(AudioBus::loadPlatformResource(subjectName.utf8().da… in getConcatenatedImpulseResponsesForSubject()
147 RefPtr<AudioBus> bus(getConcatenatedImpulseResponsesForSubject(subjectName)); in calculateKernelsForAzimuthElevation()
171 …RefPtr<AudioBus> preSampleRateConvertedResponse(AudioBus::createBufferFromRange(bus.get(), startFr… in calculateKernelsForAzimuthElevation()
172 …RefPtr<AudioBus> response(AudioBus::createBySampleRateConverting(preSampleRateConvertedResponse.ge… in calculateKernelsForAzimuthElevation()
173 AudioChannel* leftEarImpulseResponse = response->channel(AudioBus::ChannelLeft); in calculateKernelsForAzimuthElevation()
174 AudioChannel* rightEarImpulseResponse = response->channel(AudioBus::ChannelRight); in calculateKernelsForAzimuthElevation()
178 …RefPtr<AudioBus> impulseResponse(AudioBus::loadPlatformResource(resourceName.utf8().data(), sample… in calculateKernelsForAzimuthElevation()
[all …]
DAudioFileReader.h37 class AudioBus; variable
44 PLATFORM_EXPORT PassRefPtr<AudioBus> createBusFromInMemoryAudioFile(const void* data, size_t dataSi…
46 PLATFORM_EXPORT PassRefPtr<AudioBus> createBusFromAudioFile(const char* filePath, bool mixToMono, f…
49 PLATFORM_EXPORT void writeBusToAudioFile(AudioBus* bus, const char* filePath, double fileSampleRate…
/external/chromium_org/media/filters/
Dwsola_internals.h16 class AudioBus; variable
25 MEDIA_EXPORT void MultiChannelDotProduct(const AudioBus* a,
27 const AudioBus* b,
36 MEDIA_EXPORT void MultiChannelMovingBlockEnergies(const AudioBus* input,
61 const AudioBus* target_block,
62 const AudioBus* search_segment,
73 const AudioBus* target_block,
74 const AudioBus* search_block,
81 MEDIA_EXPORT int OptimalIndex(const AudioBus* search_block,
82 const AudioBus* target_block,
Daudio_renderer_algorithm.h36 class AudioBus; variable
54 int FillBuffer(AudioBus* dest, int requested_frames);
100 int requested_frames, int output_offset, AudioBus* dest);
109 void PeekAudioWithZeroPrepend(int read_offset_frames, AudioBus* dest);
192 scoped_ptr<AudioBus> wsola_output_;
206 scoped_ptr<AudioBus> optimal_block_;
209 scoped_ptr<AudioBus> search_block_;
214 scoped_ptr<AudioBus> target_block_;
/external/chromium_org/third_party/WebKit/Source/platform/exported/
DWebAudioBus.cpp34 class AudioBus : public ThreadSafeRefCounted<AudioBus> { class
46 class WebAudioBusPrivate : public AudioBus {
52 RefPtr<AudioBus> audioBus = AudioBus::create(numberOfChannels, length); in initialize()
56 (static_cast<AudioBus*>(m_private))->deref(); in initialize()
82 (static_cast<AudioBus*>(m_private))->deref(); in reset()
139 PassRefPtr<AudioBus> WebAudioBus::release() in release()
142 RefPtr<AudioBus> audioBus(adoptRef(static_cast<AudioBus*>(m_private))); in release()
/external/chromium_org/third_party/WebKit/Source/platform/audio/chromium/
DAudioBusChromium.cpp37 PassRefPtr<AudioBus> decodeAudioFileData(const char* data, size_t size, double sampleRate) in decodeAudioFileData()
45 PassRefPtr<AudioBus> AudioBus::loadPlatformResource(const char* name, float sampleRate) in loadPlatformResource()
52 RefPtr<AudioBus> audioBus = decodeAudioFileData(resource.data(), resource.size(), sampleRate); in loadPlatformResource()
61 return AudioBus::createBySampleRateConverting(audioBus.get(), false, sampleRate); in loadPlatformResource()
64 PassRefPtr<AudioBus> createBusFromInMemoryAudioFile(const void* data, size_t dataSize, bool mixToMo… in createBusFromInMemoryAudioFile()
67 …RefPtr<AudioBus> audioBus = decodeAudioFileData(static_cast<const char*>(data), dataSize, sampleRa… in createBusFromInMemoryAudioFile()
75 return AudioBus::createBySampleRateConverting(audioBus.get(), mixToMono, sampleRate); in createBusFromInMemoryAudioFile()
DAudioDestinationChromium.cpp56 , m_inputBus(AudioBus::create(numberOfInputChannels, renderBufferSize)) in AudioDestinationChromium()
57 , m_renderBus(AudioBus::create(numberOfOutputChannels, renderBufferSize, false)) in AudioDestinationChromium()
102 RefPtr<AudioBus> silence = AudioBus::create(2, renderBufferSize); in AudioDestinationChromium()
155 RefPtr<AudioBus> wrapperBus = AudioBus::create(2, numberOfFrames, false); in render()
167 void AudioDestinationChromium::provideInput(AudioBus* bus, size_t framesToProcess) in provideInput()
169 AudioBus* sourceBus = 0; in provideInput()
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
DAudioNodeInput.h69 AudioBus* pull(AudioBus* inPlaceBus, size_t framesToProcess);
73 AudioBus* bus();
91 AudioBus* internalSummingBus();
92 void sumAllConnections(AudioBus* summingBus, size_t framesToProcess);
94 RefPtr<AudioBus> m_internalSummingBus;
DAudioDestinationNode.h36 class AudioBus; variable
50 virtual void render(AudioBus* sourceBus, AudioBus* destinationBus, size_t numberOfFrames);
70 …: m_sourceBus(AudioBus::create(2, AudioNode::ProcessingSizeInFrames)) // FIXME: handle non-stereo … in LocalAudioInputProvider()
74 void set(AudioBus* bus) in set()
81 virtual void provideInput(AudioBus* destinationBus, size_t numberOfFrames) in provideInput()
90 RefPtr<AudioBus> m_sourceBus;
DAudioNodeInput.cpp44 m_internalSummingBus = AudioBus::create(1, AudioNode::ProcessingSizeInFrames); in AudioNodeInput()
146 … m_internalSummingBus = AudioBus::create(numberOfInputChannels, AudioNode::ProcessingSizeInFrames); in updateInternalBus()
171 AudioBus* AudioNodeInput::bus() in bus()
183 AudioBus* AudioNodeInput::internalSummingBus() in internalSummingBus()
190 void AudioNodeInput::sumAllConnections(AudioBus* summingBus, size_t framesToProcess) in sumAllConnections()
203 AudioBus::ChannelInterpretation interpretation = node()->internalChannelInterpretation(); in sumAllConnections()
210 AudioBus* connectionBus = output->pull(0, framesToProcess); in sumAllConnections()
217 AudioBus* AudioNodeInput::pull(AudioBus* inPlaceBus, size_t framesToProcess) in pull()
228 AudioBus* internalSummingBus = this->internalSummingBus(); in pull()
DAudioNodeOutput.h55 AudioBus* pull(AudioBus* inPlaceBus, size_t framesToProcess);
59 AudioBus* bus() const;
133 RefPtr<AudioBus> m_internalBus;
134 RefPtr<AudioBus> m_inPlaceBus;
/external/chromium_org/content/browser/renderer_host/media/
Daudio_sync_reader.cc16 using media::AudioBus;
38 int output_memory_size = AudioBus::CalculateMemorySize(params); in AudioSyncReader()
42 input_memory_size = AudioBus::CalculateMemorySize(input_channels_, frames); in AudioSyncReader()
45 input_bus_ = AudioBus::WrapMemory(input_channels_, frames, input_data); in AudioSyncReader()
49 output_bus_ = AudioBus::WrapMemory(params, shared_memory->memory()); in AudioSyncReader()
74 void AudioSyncReader::Read(const AudioBus* source, AudioBus* dest) { in Read()

1234567891011