31 lines
1.1 KiB
C++
31 lines
1.1 KiB
C++
#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
|