整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
38
video/core/AudioAdaptablePipe.h
Normal file
38
video/core/AudioAdaptablePipe.h
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#ifndef BCE1B4DD_976E_456D_AE9A_87A17E300579
|
||||
#define BCE1B4DD_976E_456D_AE9A_87A17E300579
|
||||
/*
|
||||
*******************************************************************************
|
||||
* INCLUDE
|
||||
*******************************************************************************
|
||||
*/
|
||||
#include "AudioComponent.h"
|
||||
#include "AudioFrameAdapter.h"
|
||||
#include "AudioResample.h"
|
||||
|
||||
namespace Video
|
||||
{
|
||||
namespace Core
|
||||
{
|
||||
/*
|
||||
*******************************************************************************
|
||||
* CLASS DECLARE
|
||||
*******************************************************************************
|
||||
*/
|
||||
class AudioAdaptablePipe: public AudioComponent
|
||||
{
|
||||
public:
|
||||
using AudioComponent::AudioComponent;
|
||||
|
||||
protected:
|
||||
void onLink(Core::Component::Ptr pPrevious) override;
|
||||
void onUnlink(Core::Component::Ptr pPrevious) override;
|
||||
|
||||
virtual Frame::Ptr readFrame(uint32_t timeout = 1000);
|
||||
|
||||
private:
|
||||
AudioResample::Ptr _pResample;
|
||||
AudioFrameAdapter::Ptr _pFrameAdapter;
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue