整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
31
video/alsa/Util.h
Normal file
31
video/alsa/Util.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef C0D42E11_A47F_4E62_820B_17AD3C7FE57C
|
||||
#define C0D42E11_A47F_4E62_820B_17AD3C7FE57C
|
||||
/*
|
||||
*******************************************************************************
|
||||
* INCLUDE
|
||||
*******************************************************************************
|
||||
*/
|
||||
#include "SoundCard.h"
|
||||
#include "../core/SampleFormat.h"
|
||||
|
||||
namespace Video
|
||||
{
|
||||
namespace ALSA
|
||||
{
|
||||
/*
|
||||
*******************************************************************************
|
||||
* CLASS DECLARE
|
||||
*******************************************************************************
|
||||
*/
|
||||
class Util
|
||||
{
|
||||
public:
|
||||
static uint32_t getSuitableSampleRate(SoundCard::Ptr pCard, uint32_t target);
|
||||
static snd_pcm_format_t getSuitableSampleFormat(SoundCard::Ptr pCard, Core::SampleFormat refer);
|
||||
static snd_pcm_access_t getSuitableAccess(SoundCard::Ptr pCard, bool planar);
|
||||
static snd_pcm_format_t convertSampleFormat(Core::SampleFormat format);
|
||||
static Core::SampleFormat convertSampleFormat(snd_pcm_format_t format, bool interleaved);
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue