![]() |
SOUND4 IMPACT.CL Library [1.3.7]
|
Namespaces | |
namespace | dyn |
namespace | helper |
Classes | |
class | CInstance |
Instance handling class. More... | |
class | CPresetLoader |
Custom preset handler helper. More... | |
Typedefs | |
using | SampleFormat = impact_SampleFormat |
using | LogSeverity = impact_LogSeverity |
using | log_cb_t = std::function< void(LogSeverity, const std::string &)> |
using | PresetChange_Kind = impact_PresetChange_Kind |
Functions | |
static std::string | GetVersion () |
static unsigned int | GetChunkSizeInFrames () |
static std::vector< unsigned int > | GetPossibleChunkSizeInFrames () |
static unsigned int | GetChannelCount () |
static unsigned int | GetAudioInputCount () |
static unsigned int | GetAudioOutputCount () |
static unsigned int | GetSampleRate () |
static void | SanityCheck (bool a_bCheckFrames=true) |
static std::string | GetFormatName (const SampleFormat fmt) |
static SampleFormat | GetFormatFromName (const std::string &name) |
static unsigned int | GetBytesFromFormat (const SampleFormat fmt) |
static void | _log_cb_c (impact_LogSeverity severity, const char *c_msg) |
static void | SetLogSeverity (LogSeverity severity) |
static void | SetLoggerCallback (log_cb_t cb) |
Variables | |
static constexpr const char * | process_name = "SOUND4 IMPACT.CL" |
static constexpr const char * | process_shortname = "impact" |
const size_t | ChunkFrames = 64 |
const size_t | InputChannels = 2 * 1 |
const size_t | OutputChannels = 2 * 1 |
const size_t | InputSampleSize =ChunkFrames*InputChannels |
const size_t | OutputSampleSize =ChunkFrames*OutputChannels |
const size_t | SampleRate = 48000 |
static log_cb_t | _log_cb |
impact namespace
using sound4::impact::log_cb_t = typedef std::function<void(LogSeverity,const std::string&)> |
Log callback type
Definition at line 398 of file sound4.impact.cl.hpp.
using sound4::impact::LogSeverity = typedef impact_LogSeverity |
Log Severity levels
Definition at line 394 of file sound4.impact.cl.hpp.
using sound4::impact::PresetChange_Kind = typedef impact_PresetChange_Kind |
Definition at line 464 of file sound4.impact.cl.hpp.
using sound4::impact::SampleFormat = typedef impact_SampleFormat |
Definition at line 56 of file sound4.impact.cl.hpp.
|
inlinestatic |
Definition at line 405 of file sound4.impact.cl.hpp.
|
inlinestatic |
Get the number of inputs for this process
Definition at line 304 of file sound4.impact.cl.hpp.
|
inlinestatic |
Get the number of outputs for this process
Definition at line 316 of file sound4.impact.cl.hpp.
|
inlinestatic |
Get the format byte size
fmt | the format |
Definition at line 386 of file sound4.impact.cl.hpp.
|
inlinestatic |
Get the number of channels needed by this process
Definition at line 292 of file sound4.impact.cl.hpp.
|
inlinestatic |
Get the default number of frames in a process chunk.
The output will be available only by chunks of this size.
Definition at line 265 of file sound4.impact.cl.hpp.
|
inlinestatic |
Convert string to format
name | the format string |
Definition at line 375 of file sound4.impact.cl.hpp.
|
inlinestatic |
Convert format to string
fmt | the format |
Definition at line 364 of file sound4.impact.cl.hpp.
|
inlinestatic |
Get the possibles number of frames in a process chunk.
The output will be available only by chunks of this size.
Definition at line 278 of file sound4.impact.cl.hpp.
|
inlinestatic |
Get the processing sample-rate
Definition at line 328 of file sound4.impact.cl.hpp.
|
inlinestatic |
Get the process version string
Definition at line 250 of file sound4.impact.cl.hpp.
|
inlinestatic |
Checks for library compatibility with const/defines
Throws std::runtime_error on failure
Definition at line 338 of file sound4.impact.cl.hpp.
|
inlinestatic |
Sets the log callback. If not set, console output will be used.
Definition at line 419 of file sound4.impact.cl.hpp.
|
inlinestatic |
Sets the log severity (global)
Definition at line 412 of file sound4.impact.cl.hpp.
|
static |
internal helpers for C log callbacks
Definition at line 403 of file sound4.impact.cl.hpp.
const size_t sound4::impact::ChunkFrames = 64 |
Number of frames in a chunk
Definition at line 61 of file sound4.impact.cl.hpp.
const size_t sound4::impact::InputChannels = 2 * 1 |
Number of float values in an input frame
Definition at line 66 of file sound4.impact.cl.hpp.
const size_t sound4::impact::InputSampleSize =ChunkFrames*InputChannels |
Number of float values for an input chunk
Definition at line 76 of file sound4.impact.cl.hpp.
const size_t sound4::impact::OutputChannels = 2 * 1 |
Number of float values in an output frame
Definition at line 71 of file sound4.impact.cl.hpp.
const size_t sound4::impact::OutputSampleSize =ChunkFrames*OutputChannels |
Number of float values for an output chunk
Definition at line 81 of file sound4.impact.cl.hpp.
|
staticconstexpr |
Definition at line 54 of file sound4.impact.cl.hpp.
|
staticconstexpr |
Definition at line 55 of file sound4.impact.cl.hpp.
const size_t sound4::impact::SampleRate = 48000 |
Sample rate of library
Definition at line 86 of file sound4.impact.cl.hpp.