mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
parent
6f92ef2f3b
commit
1513e9a857
@ -147,12 +147,7 @@ public:
|
|||||||
* 是否已经初始化
|
* 是否已经初始化
|
||||||
*/
|
*/
|
||||||
bool ready() override {
|
bool ready() override {
|
||||||
return _ready;
|
return true;
|
||||||
}
|
|
||||||
|
|
||||||
bool inputFrame(const Frame::Ptr &frame) override {
|
|
||||||
_ready = true;
|
|
||||||
return AudioTrack::inputFrame(frame);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -176,7 +171,6 @@ public:
|
|||||||
return _channels;
|
return _channels;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
bool _ready = false;
|
|
||||||
CodecId _codecid;
|
CodecId _codecid;
|
||||||
int _sample_rate;
|
int _sample_rate;
|
||||||
int _channels;
|
int _channels;
|
||||||
|
Loading…
Reference in New Issue
Block a user