| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_AUDIO_MODEM_TEST_RANDOM_SAMPLES_H_ | |
| 6 #define COMPONENTS_AUDIO_MODEM_TEST_RANDOM_SAMPLES_H_ | |
| 7 | |
| 8 #include <stddef.h> | |
| 9 | |
| 10 #include "base/memory/ref_counted.h" | |
| 11 | |
| 12 namespace media { | |
| 13 class AudioBus; | |
| 14 class AudioBusRefCounted; | |
| 15 } | |
| 16 | |
| 17 namespace audio_modem { | |
| 18 | |
| 19 // Populate random samples given a random seed into the samples array. | |
| 20 void PopulateSamples(unsigned int random_seed, size_t size, float* samples); | |
| 21 | |
| 22 // Create an ref counted audio bus populated with random samples. | |
| 23 scoped_refptr<media::AudioBusRefCounted> | |
| 24 CreateRandomAudioRefCounted(int random_seed, int channels, int samples); | |
| 25 | |
| 26 } // namespace audio_modem | |
| 27 | |
| 28 #endif // COMPONENTS_AUDIO_MODEM_TEST_RANDOM_SAMPLES_H_ | |
| OLD | NEW |