OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/stringprintf.h" | 5 #include "base/strings/stringprintf.h" |
6 #include "base/time.h" | 6 #include "base/time.h" |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 #include "media/audio/audio_parameters.h" | 8 #include "media/audio/audio_parameters.h" |
9 #include "media/base/audio_bus.h" | 9 #include "media/base/audio_bus.h" |
10 #include "media/base/channel_layout.h" | 10 #include "media/base/channel_layout.h" |
11 #include "media/base/fake_audio_render_callback.h" | 11 #include "media/base/fake_audio_render_callback.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace media { | 14 namespace media { |
15 | 15 |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 printf("ToInterleaved int32 took %.2fms.\n", total_time_ms); | 463 printf("ToInterleaved int32 took %.2fms.\n", total_time_ms); |
464 | 464 |
465 start = base::TimeTicks::HighResNow(); | 465 start = base::TimeTicks::HighResNow(); |
466 bus->FromInterleaved(interleaved.get(), bus->frames(), byte_size); | 466 bus->FromInterleaved(interleaved.get(), bus->frames(), byte_size); |
467 total_time_ms = (base::TimeTicks::HighResNow() - start).InMillisecondsF(); | 467 total_time_ms = (base::TimeTicks::HighResNow() - start).InMillisecondsF(); |
468 printf("FromInterleaved int32 took %.2fms.\n", total_time_ms); | 468 printf("FromInterleaved int32 took %.2fms.\n", total_time_ms); |
469 } | 469 } |
470 } | 470 } |
471 | 471 |
472 } // namespace media | 472 } // namespace media |
OLD | NEW |