summaryrefslogtreecommitdiffstats
path: root/media/base/audio_decoder_config.h
blob: e2c848d03d56ec4b898119966a2fc3530553c145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef MEDIA_BASE_AUDIO_DECODER_CONFIG_H_
#define MEDIA_BASE_AUDIO_DECODER_CONFIG_H_

#include "media/base/channel_layout.h"

namespace media {

struct AudioDecoderConfig {
  AudioDecoderConfig(int bits, ChannelLayout layout, int rate)
      : bits_per_channel(bits),
        channel_layout(layout),
        sample_rate(rate) {
  }

  int bits_per_channel;
  ChannelLayout channel_layout;
  int sample_rate;
};

}  // namespace media

#endif  // MEDIA_BASE_AUDIO_DECODER_CONFIG_H_