整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
43
video/shine/AudioEncoder.h
Normal file
43
video/shine/AudioEncoder.h
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
#ifndef FAAFB16A_5BB2_43F7_9F92_991E8328451D
|
||||
#define FAAFB16A_5BB2_43F7_9F92_991E8328451D
|
||||
/*
|
||||
*******************************************************************************
|
||||
* INCLUDE
|
||||
*******************************************************************************
|
||||
*/
|
||||
#include "../core/AudioEncoder.h"
|
||||
extern "C"
|
||||
{
|
||||
#include <shine/layer3.h>
|
||||
}
|
||||
|
||||
namespace Video
|
||||
{
|
||||
namespace Shine
|
||||
{
|
||||
/*
|
||||
*******************************************************************************
|
||||
* CLASS DECLARE
|
||||
*******************************************************************************
|
||||
*/
|
||||
class AudioEncoder: public Core::AudioEncoder
|
||||
{
|
||||
public:
|
||||
AudioEncoder(Core::CodecID codecID);
|
||||
~AudioEncoder();
|
||||
|
||||
protected:
|
||||
void initialize() override;
|
||||
void deinitialize() override;
|
||||
Core::Packet::Ptr encode() override;
|
||||
void onConfigChanged(ParameterNames& names) override;
|
||||
|
||||
void dummyConfig(shine_config_t* pConfig);
|
||||
|
||||
private:
|
||||
shine_t _pEncoder;
|
||||
shine_config_t _config;
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue