p26001-store-acs-soc-fw-app/video/core/AudioAdaptablePipe.h
2026-09-28 21:33:04 +08:00

38 lines
1 KiB
C++

#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