blob: 6cb113d97af464975bda24145d11ff846672dcc8 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef ACM_TEST_SPATIAL_AUDIO_H
12#define ACM_TEST_SPATIAL_AUDIO_H
13
14#include "ACMTest.h"
15#include "Channel.h"
16#include "PCMFile.h"
17#include "audio_coding_module.h"
18#include "utility.h"
19
20#define MAX_FILE_NAME_LENGTH_BYTE 500
21
tina.legrand@webrtc.org554ae1a2011-12-16 10:09:04 +000022namespace webrtc {
niklase@google.com470e71d2011-07-07 08:21:25 +000023
tina.legrand@webrtc.orgd5726a12013-05-03 07:34:12 +000024class SpatialAudio : public ACMTest {
25 public:
26 SpatialAudio(int testMode);
27 ~SpatialAudio();
niklase@google.com470e71d2011-07-07 08:21:25 +000028
tina.legrand@webrtc.orgd5726a12013-05-03 07:34:12 +000029 void Perform();
30 private:
31 int16_t Setup();
32 void EncodeDecode(double leftPanning, double rightPanning);
33 void EncodeDecode();
niklase@google.com470e71d2011-07-07 08:21:25 +000034
tina.legrand@webrtc.orgd5726a12013-05-03 07:34:12 +000035 AudioCodingModule* _acmLeft;
36 AudioCodingModule* _acmRight;
37 AudioCodingModule* _acmReceiver;
38 Channel* _channel;
39 PCMFile _inFile;
40 PCMFile _outFile;
41 int _testMode;
niklase@google.com470e71d2011-07-07 08:21:25 +000042};
tina.legrand@webrtc.org554ae1a2011-12-16 10:09:04 +000043
tina.legrand@webrtc.orgd5726a12013-05-03 07:34:12 +000044} // namespace webrtc
tina.legrand@webrtc.org554ae1a2011-12-16 10:09:04 +000045
niklase@google.com470e71d2011-07-07 08:21:25 +000046#endif