SOUND4 IMPACT FM.CL Library [2.0.3]
Loading...
Searching...
No Matches
sound4.impactfm.cl.hpp File Reference

C++ wrapper for library.

#include <string>
#include <exception>
#include <thread>
#include <functional>
#include <memory>
#include <array>
#include <assert.h>
#include <stdexcept>
#include <filesystem>
#include <string.h>
#include "sound4.impactfm.cl.h"
#include <stringapiset.h>
#include <wchar.h>

Go to the source code of this file.

Classes

struct  sound4::AuxiliaryOutputInfos
struct  sound4::impactfm::helper::SampleFormat< T >
 Helper for Sample format types. More...
class  sound4::impactfm::CPresetLoader
 Custom preset handler helper. More...
class  sound4::impactfm::CInstance
 Instance handling class. More...
class  sound4::impactfm::CInstance::CClient
class  sound4::impactfm::CAudioConverter
 Audio converter helper. More...

Namespaces

namespace  sound4
namespace  sound4::impactfm
namespace  sound4::impactfm::helper

Typedefs

using sound4::impactfm::SampleFormat = impactfm_SampleFormat
using sound4::impactfm::LogSeverity = impactfm_LogSeverity
using sound4::impactfm::log_cb_t = std::function<void(LogSeverity,const std::string&)>
using sound4::impactfm::PresetChange_Kind = impactfm_PresetChange_Kind

Functions

static char * impactfm_custom_reader (const fs_char *filename, void *userdata)
static void impactfm_custom_reader_free (char *content, void *userdata)
static int impactfm_custom_writer (const fs_char *filename, const char *content, void *userdata)
static int impactfm_custom_exists (const fs_char *filename, void *userdata)
static fs_char ** impactfm_custom_getall (void *userdata)
static void impactfm_custom_getall_free (fs_char **all, void *userdata)
static int impactfm_custom_remove (const fs_char *filename, void *userdata)
static int impactfm_custom_rename (const fs_char *from, const fs_char *to, void *userdata)
static std::string sound4::impactfm::helper::WStringToUTF8 (const std::wstring &wstr)
static std::wstring sound4::impactfm::helper::UTF8ToWString (const std::string &str)
static void sound4::impactfm::helper::AudioConvertFrom (const uint8_t *payload, float *output, size_t nSpl, impactfm_SampleFormat fmt)
static void sound4::impactfm::helper::AudioConvertTo (const float *input, uint8_t *payload, size_t nSpl, impactfm_SampleFormat fmt)
static void sound4::impactfm::helper::StereoToMono (const float *input, float *output, size_t nFrame)
static void sound4::impactfm::helper::MonoToStereo (const float *input, float *output, size_t nFrame)
static void sound4::impactfm::helper::StereoToMono_Planar (const float *inputL, const float *inputR, float *output, size_t nFrame)
static void sound4::impactfm::helper::MonoToStereo_Planar (const float *input, float *outputL, float *outputR, size_t nFrame)
static void sound4::impactfm::helper::AudioMonoFromLiveStereo (const uint8_t *payload, float *output)
static void sound4::impactfm::helper::AudioMonoToLiveStereo (const float *input, uint8_t *payload)
static std::string sound4::impactfm::GetVersion ()
static unsigned int sound4::impactfm::GetChunkSizeInFrames ()
static std::vector< unsigned int > sound4::impactfm::GetPossibleChunkSizeInFrames ()
static unsigned int sound4::impactfm::GetChannelCount ()
static unsigned int sound4::impactfm::GetAudioInputCount ()
static unsigned int sound4::impactfm::GetAudioOutputCount ()
static unsigned int sound4::impactfm::GetSampleRate ()
static void sound4::impactfm::SanityCheck (bool a_bCheckFrames=true)
static std::string sound4::impactfm::GetFormatName (const SampleFormat fmt)
static SampleFormat sound4::impactfm::GetFormatFromName (const std::string &name)
static unsigned int sound4::impactfm::GetBytesFromFormat (const SampleFormat fmt)
static void sound4::impactfm::_log_cb_c (impactfm_LogSeverity severity, const char *c_msg)
static void sound4::impactfm::SetLogSeverity (LogSeverity severity)
static void sound4::impactfm::SetLoggerCallback (log_cb_t cb)

Variables

static constexpr const char * sound4::impactfm::process_name = "SOUND4 IMPACT FM.CL"
static constexpr const char * sound4::impactfm::process_shortname = "impactfm"
const size_t sound4::impactfm::ChunkFrames = 64
const size_t sound4::impactfm::InputChannels = 2 * 1
const size_t sound4::impactfm::OutputChannels = 2 * 1
const size_t sound4::impactfm::InputSampleSize =ChunkFrames*InputChannels
const size_t sound4::impactfm::OutputSampleSize =ChunkFrames*OutputChannels
const size_t sound4::impactfm::SampleRate = 48000
static log_cb_t sound4::impactfm::_log_cb

Function Documentation

◆ impactfm_custom_exists()

int impactfm_custom_exists ( const fs_char * filename,
void * userdata )
static

Definition at line 1198 of file sound4.impactfm.cl.hpp.

◆ impactfm_custom_getall()

fs_char ** impactfm_custom_getall ( void * userdata)
static

Definition at line 1203 of file sound4.impactfm.cl.hpp.

◆ impactfm_custom_getall_free()

void impactfm_custom_getall_free ( fs_char ** all,
void * userdata )
static

Definition at line 1213 of file sound4.impactfm.cl.hpp.

◆ impactfm_custom_reader()

char * impactfm_custom_reader ( const fs_char * filename,
void * userdata )
static

Definition at line 1184 of file sound4.impactfm.cl.hpp.

◆ impactfm_custom_reader_free()

void impactfm_custom_reader_free ( char * content,
void * userdata )
static

Definition at line 1189 of file sound4.impactfm.cl.hpp.

◆ impactfm_custom_remove()

int impactfm_custom_remove ( const fs_char * filename,
void * userdata )
static

Definition at line 1220 of file sound4.impactfm.cl.hpp.

◆ impactfm_custom_rename()

int impactfm_custom_rename ( const fs_char * from,
const fs_char * to,
void * userdata )
static

Definition at line 1225 of file sound4.impactfm.cl.hpp.

◆ impactfm_custom_writer()

int impactfm_custom_writer ( const fs_char * filename,
const char * content,
void * userdata )
static

Definition at line 1193 of file sound4.impactfm.cl.hpp.