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

32 lines
812 B
C++

/*
*******************************************************************************
* INCLUDE
*******************************************************************************
*/
#include "AudioComponent.h"
namespace Video
{
namespace Core
{
/*
*******************************************************************************
* CLASS DEFINE
*******************************************************************************
*/
AudioComponent::AudioComponent(const std::string& name): Component(name)
{
setSampleRate(48000);
setChannelLayout(ChannelLayout::STEREO);
setSampleFormat(SampleFormat::S16P);
setFrameSize(1024);
setGain(0);
setPTSOffset(0);
setSignalLost(true);
}
AudioComponent::~AudioComponent()
{
}
}
}