整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
32
video/core/AudioComponent.cpp
Normal file
32
video/core/AudioComponent.cpp
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* 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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue