1 //
2 //  Copyright (C) 2017 Google, Inc.
3 //
4 //  Licensed under the Apache License, Version 2.0 (the "License");
5 //  you may not use this file except in compliance with the License.
6 //  You may obtain a copy of the License at:
7 //
8 //  http://www.apache.org/licenses/LICENSE-2.0
9 //
10 //  Unless required by applicable law or agreed to in writing, software
11 //  distributed under the License is distributed on an "AS IS" BASIS,
12 //  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 //  See the License for the specific language governing permissions and
14 //  limitations under the License.
15 //
16 
17 #include "bluetooth/a2dp_codec_config.h"
18 
19 namespace bluetooth {
20 
21 A2dpCodecConfig::A2dpCodecConfig() = default;
22 A2dpCodecConfig::A2dpCodecConfig(const A2dpCodecConfig& other) = default;
A2dpCodecConfig(int codec_type,int codec_priority,int sample_rate,int bits_per_sample,int channel_mode,int64_t codec_specific_1,int64_t codec_specific_2,int64_t codec_specific_3,int64_t codec_specific_4)23 A2dpCodecConfig::A2dpCodecConfig(int codec_type, int codec_priority,
24                                  int sample_rate, int bits_per_sample,
25                                  int channel_mode, int64_t codec_specific_1,
26                                  int64_t codec_specific_2,
27                                  int64_t codec_specific_3,
28                                  int64_t codec_specific_4)
29     : codec_type_(codec_type),
30       codec_priority_(codec_priority),
31       sample_rate_(sample_rate),
32       bits_per_sample_(bits_per_sample),
33       channel_mode_(channel_mode),
34       codec_specific_1_(codec_specific_1),
35       codec_specific_2_(codec_specific_2),
36       codec_specific_3_(codec_specific_3),
37       codec_specific_4_(codec_specific_4) {}
38 
39 A2dpCodecConfig::~A2dpCodecConfig() = default;
40 
41 }  // namespace bluetooth
42