32 lines
812 B
C++
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()
|
|
{
|
|
}
|
|
}
|
|
}
|