L16.h 845 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 20 21 22 23
 *
 * 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_L16_H
#define ZLMEDIAKIT_L16_H

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

namespace mediakit{

/**
 * L16音频通道
 */
class L16Track : public AudioTrackImp{
public:
24
    using Ptr = std::shared_ptr<L16Track>;
25 26 27
    L16Track(int sample_rate, int channels) : AudioTrackImp(CodecL16,sample_rate,channels,16){}

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

}//namespace mediakit
#endif //ZLMEDIAKIT_L16_H