G711.h 874 Bytes
Newer Older
1 2 3
/*
 * Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
 *
4
 * This file is part of ZLMediaKit(https://github.com/xia-chu/ZLMediaKit).
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
 *
 * Use of this source code is governed by MIT license that can be found in the
 * LICENSE file in the root of the source tree. All contributing project authors
 * may be found in the AUTHORS file in the root of the source tree.
 */

#ifndef ZLMEDIAKIT_G711_H
#define ZLMEDIAKIT_G711_H

#include "Frame.h"
#include "Track.h"

namespace mediakit{

/**
xiongziliang committed
20
 * G711音频通道
21
 */
xiongziliang committed
22
class G711Track : public AudioTrackImp{
23
public:
24
    using Ptr = std::shared_ptr<G711Track>;
xiongziliang committed
25
    G711Track(CodecId codecId, int sample_rate, int channels, int sample_bit) : AudioTrackImp(codecId, 8000, 1, 16) {}
26 27

private:
28 29
    Sdp::Ptr getSdp() override;
    Track::Ptr clone() override;
30 31 32
};

}//namespace mediakit
xiongziliang committed
33
#endif //ZLMEDIAKIT_G711_H