![]() |
SOUND4 x1.CLOUD Library [1.5.6]
|
Dynamic library interface. More...
#include <sound4cl.hpp>
Public Member Functions | |
CProcessor ()=default | |
bool | Load (const std::filesystem::path &filepath) |
Loads the library. | |
bool | IsOk () const |
Check if the library was loaded correctly. | |
void | AudioConvertFrom (const uint8_t *payload, float *output, size_t nSpl, SampleFormat fmt) |
void | AudioConvertTo (const float *input, uint8_t *payload, size_t nSpl, SampleFormat fmt) |
void | StereoToMono (const float *input, float *output, size_t nFrame) |
void | MonoToStereo (const float *input, float *output, size_t nFrame) |
void | StereoToMono_Planar (const float *inputL, const float *inputR, float *output, size_t nFrame) |
void | MonoToStereo_Planar (const float *input, float *outputL, float *outputR, size_t nFrame) |
void | AudioMonoFromLiveStereo (const uint8_t *payload, float *output) |
void | AudioMonoToLiveStereo (const float *input, uint8_t *payload) |
std::string | GetVersion () |
unsigned int | GetChunkSizeInFrames () |
std::vector< unsigned int > | GetPossibleChunkSizeInFrames () |
unsigned int | GetChannelCount () |
unsigned int | GetAudioInputCount () |
unsigned int | GetAudioOutputCount () |
unsigned int | GetSampleRate () |
std::string | GetFormatName (const SampleFormat fmt) |
SampleFormat | GetFormatFromName (const std::string &name) |
unsigned int | GetBytesFromFormat (const SampleFormat fmt) |
void | SetLogSeverity (LogSeverity severity) |
void | SetLoggerCallback (log_cb_t cb) |
Protected Member Functions | |
template<typename T > | |
helper::DynFuncHolder< T > | GetPrefixSymbol (const std::string &name) |
Friends | |
class | CBus |
class | CInstance |
Once you loaded the library with Load(), if it succeed you can use all the standard C functions from this library.
Definition at line 299 of file sound4cl.hpp.
|
default |
|
inline |
Get the number of inputs for this process
Definition at line 753 of file sound4cl.hpp.
|
inline |
Get the number of outputs for this process
Definition at line 763 of file sound4cl.hpp.
|
inline |
Get the format byte size
fmt | the format |
Definition at line 800 of file sound4cl.hpp.
|
inline |
Get the number of channels needed by this process
Definition at line 743 of file sound4cl.hpp.
|
inline |
Get the default number of frames in a process chunk.
The output will be available only by chunks of this size.
Definition at line 714 of file sound4cl.hpp.
|
inline |
Convert string to format
name | the format string |
Definition at line 791 of file sound4cl.hpp.
|
inline |
Convert format to string
fmt | the format |
Definition at line 782 of file sound4cl.hpp.
|
inline |
Get the possibles number of frames in a process chunk.
The output will be available only by chunks of this size.
Definition at line 725 of file sound4cl.hpp.
|
inlineprotected |
Definition at line 393 of file sound4cl.hpp.
|
inline |
Get the processing sample-rate
Definition at line 773 of file sound4cl.hpp.
|
inline |
|
inline |
Definition at line 588 of file sound4cl.hpp.
|
inline |
filepath | the path of the library to load. |
Definition at line 408 of file sound4cl.hpp.
|
inline |
Sets the log callback. If not set, console output will be used.
Definition at line 812 of file sound4cl.hpp.
|
inline |
Sets the log severity (global)
Definition at line 806 of file sound4cl.hpp.
|
friend |
Definition at line 305 of file sound4cl.hpp.
|
friend |
Definition at line 306 of file sound4cl.hpp.