mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Opus codec module test pass
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <thread>
|
||||
#include <vector>
|
||||
|
||||
#include "OpusDecoderImpl.h"
|
||||
#include "base_type.h"
|
||||
#include "opus/opus.h"
|
||||
|
||||
@@ -21,6 +22,8 @@ class OpusEncoderImpl {
|
||||
std::mutex access_mutex;
|
||||
std::unique_ptr<std::thread> m_thread;
|
||||
|
||||
OpusDecoderImpl *decoder = nullptr;
|
||||
|
||||
public:
|
||||
OpusEncoderImpl(int sampleRate, int channel);
|
||||
void Feed(unsigned char *data, int len);
|
||||
|
||||
Reference in New Issue
Block a user