Add namespace 'webrtc' to AudioFrameView.
Mini-change: add 'webrtc' namespace. The template class AudioFrameView got declared in the global namespace by mistake. (My fault). Now fixing. Bug: webrtc:9262. Change-Id: I6f2b4ab1ccdb223505e7181b8e6f12f5f23b3684 Reviewed-on: https://webrtc-review.googlesource.com/76140 Commit-Queue: Alex Loiko <aleloi@webrtc.org> Reviewed-by: Sam Zackrisson <saza@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23215}
This commit is contained in:
@ -13,6 +13,7 @@
|
|||||||
#include "modules/audio_processing/audio_buffer.h"
|
#include "modules/audio_processing/audio_buffer.h"
|
||||||
#include "test/gtest.h"
|
#include "test/gtest.h"
|
||||||
|
|
||||||
|
namespace webrtc {
|
||||||
TEST(AudioFrameTest, ConstructFromAudioBuffer) {
|
TEST(AudioFrameTest, ConstructFromAudioBuffer) {
|
||||||
constexpr int kSampleRateHz = 48000;
|
constexpr int kSampleRateHz = 48000;
|
||||||
constexpr int kNumChannels = 2;
|
constexpr int kNumChannels = 2;
|
||||||
@ -47,3 +48,4 @@ TEST(AudioFrameTest, ConstructFromAudioBuffer) {
|
|||||||
non_const_int16_view.channel(0)[0] = kIntConstant;
|
non_const_int16_view.channel(0)[0] = kIntConstant;
|
||||||
EXPECT_EQ(buffer.channels()[0][0], kIntConstant);
|
EXPECT_EQ(buffer.channels()[0][0], kIntConstant);
|
||||||
}
|
}
|
||||||
|
} // namespace webrtc
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
|
|
||||||
#include "api/array_view.h"
|
#include "api/array_view.h"
|
||||||
|
|
||||||
|
namespace webrtc {
|
||||||
|
|
||||||
// Class to pass audio data in T** format, where T is a numeric type.
|
// Class to pass audio data in T** format, where T is a numeric type.
|
||||||
template <class T>
|
template <class T>
|
||||||
class AudioFrameView {
|
class AudioFrameView {
|
||||||
@ -60,5 +62,6 @@ class AudioFrameView {
|
|||||||
size_t num_channels_;
|
size_t num_channels_;
|
||||||
size_t channel_size_;
|
size_t channel_size_;
|
||||||
};
|
};
|
||||||
|
} // namespace webrtc
|
||||||
|
|
||||||
#endif // MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_FRAME_VIEW_H_
|
#endif // MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_FRAME_VIEW_H_
|
||||||
|
Reference in New Issue
Block a user