![]() |
SOUND4 IMPACT.CL Library [1.3.12]
|
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 309 of file sound4cl.hpp.
|
default |
|
inline |
Get the number of inputs for this process
Definition at line 780 of file sound4cl.hpp.
|
inline |
Get the number of outputs for this process
Definition at line 790 of file sound4cl.hpp.
|
inline |
Get the format byte size
| fmt | the format |
Definition at line 827 of file sound4cl.hpp.
|
inline |
Get the number of channels needed by this process
Definition at line 770 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 741 of file sound4cl.hpp.
|
inline |
Convert string to format
| name | the format string |
Definition at line 818 of file sound4cl.hpp.
|
inline |
Convert format to string
| fmt | the format |
Definition at line 809 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 752 of file sound4cl.hpp.
|
inlineprotected |
Definition at line 409 of file sound4cl.hpp.
|
inline |
Get the processing sample-rate
Definition at line 800 of file sound4cl.hpp.
|
inline |
|
inline |
Definition at line 615 of file sound4cl.hpp.
|
inline |
| filepath | the path of the library to load. |
Definition at line 424 of file sound4cl.hpp.
|
inline |
Sets the log callback. If not set, console output will be used.
Definition at line 839 of file sound4cl.hpp.
|
inline |
Sets the log severity (global)
Definition at line 833 of file sound4cl.hpp.
|
friend |
Definition at line 315 of file sound4cl.hpp.
|
friend |
Definition at line 316 of file sound4cl.hpp.