![]() |
SOUND4 IMPACT.CL Library [1.0.5]
|
#include <sound4.impact.cl.hpp>
Classes | |
| class | CClient |
Public Member Functions | |
| CInstance () | |
| CInstance (const CInstance &)=delete | |
| CInstance & | operator= (const CInstance &)=delete |
| ~CInstance () | |
| bool | IsOk () const |
| void | SetParam (const std::string &name, const std::string &value) |
| std::string | GetParam (const std::string &name) |
| bool | Create (const std::string &LoginKey, const std::string &RadioName, const std::string &AWS_Access_ID, const std::string &AWS_Access_Secret, const std::string &save_path, int json_port=0) |
| virtual void | OnUpdateThreadStart () |
| virtual void | OnUpdateThreadStop () |
| bool | StartWebServer (int http_port, int https_port=0) |
| void | StopWebServer () |
| void | Stop () |
| uint | GetEstimatedDelay () |
| std::array< float, InputSampleSize > & | GetBufferIn () |
| std::array< float, OutputSampleSize > & | GetBufferOut () |
| void | ProcessAudio () |
| void | ProcessAudio_Planar (float const *const (&input)[InputChannels], float *const (&output)[OutputChannels]) |
| template<typename T > | |
| std::vector< T > | ProcessAnyAudio (const std::vector< T > input) |
| std::shared_ptr< CClient > | NewClient () |
Protected Member Functions | |
| template<typename T > | |
| uint | AddAudio (const T *payload, uint nFrame) |
| template<typename T > | |
| uint | GetAudio (T *payload, uint max_nFrame) |
Instance handling class
Definition at line 249 of file sound4.impact.cl.hpp.
|
inline |
Creates the instance, with default parameters
Definition at line 254 of file sound4.impact.cl.hpp.
|
delete |
|
inline |
Destructor, stopping any running tasks
Definition at line 266 of file sound4.impact.cl.hpp.
|
inlineprotected |
Definition at line 550 of file sound4.impact.cl.hpp.
|
inline |
Creates and initialize the instance, and starts its update thread
| LoginKey | SOUND4 Login key |
| RadioName | SOUND4 RadioName |
| AWS_Access_ID | SOUND4 AWS access ID |
| AWS_Access_Secret | SOUND4 AWS access Secret |
| save_path | Path where we can load/save the configuration |
| json_port | Optional json listening port |
Definition at line 311 of file sound4.impact.cl.hpp.
|
inlineprotected |
Definition at line 556 of file sound4.impact.cl.hpp.
|
inline |
Gets the input buffer used in ProcessAudio
Input has GetAudioInputCount() * GetChannelCount() channels
Each sample is a native 32-bit floating-point number where 1.0 is full scale. Channels are interlaced, so the buffers are [L0,R0,L1,R1,...,Ln,Rn] (L=Left, R=Right)
In case of multiple audio input/output, buffer is [aL0,aR0,bL0,bR0,...,aLn,aRn,bLn,bRn]
Definition at line 405 of file sound4.impact.cl.hpp.
|
inline |
Gets the output buffer used in ProcessAudio
Output has GetAudioOutputCount() * GetChannelCount() channels
Each sample is a native 32-bit floating-point number where 1.0 is full scale. Channels are interlaced, so the buffers are [L0,R0,L1,R1,...,Ln,Rn] (L=Left, R=Right)
In case of multiple audio input/output, buffer is [aL0,aR0,bL0,bR0,...,aLn,aRn,bLn,bRn]
Definition at line 422 of file sound4.impact.cl.hpp.
|
inline |
Gets an estimated delay of current processing
Definition at line 389 of file sound4.impact.cl.hpp.
|
inline |
Gets a parameter value
Definition at line 290 of file sound4.impact.cl.hpp.
|
inline |
Returns true if an instance has been created and not stopped.
Definition at line 274 of file sound4.impact.cl.hpp.
|
inline |
Creates a low-level JSON client
Definition at line 542 of file sound4.impact.cl.hpp.
|
inlinevirtual |
Definition at line 329 of file sound4.impact.cl.hpp.
|
inlinevirtual |
Definition at line 331 of file sound4.impact.cl.hpp.
|
inline |
Process audio (different formats, less optimized)
Supports for int16_t, int32_t and float (32) in native endianness
| T | the C type for one audio sample |
| input | audio to process |
Definition at line 470 of file sound4.impact.cl.hpp.
|
inline |
Process one audio chunk, from GetBufferIn() to GetBufferOut()
Definition at line 433 of file sound4.impact.cl.hpp.
|
inline |
Process one audio chunk, but with planar audio
Each sample is a native 32-bit floating-point number where 1.0 is full scale. Channels are NOT interlaced, so the buffers are arrays of planar audio : [ [L0,L1,...,Ln] , [R0,R1,...,Rn] ] (L=Left, R=Right)
In case of multiple audio input/output, buffer are [ [aL...], [aR...], [bL...], [bR...], ... ]
| input | has GetAudioInputCount() * GetChannelCount() channels |
| output | has GetAudioOutputCount() * GetChannelCount() channels |
Definition at line 452 of file sound4.impact.cl.hpp.
|
inline |
Set a parameter value
Definition at line 280 of file sound4.impact.cl.hpp.
|
inline |
Starts a Web server on requested ports
Definition at line 338 of file sound4.impact.cl.hpp.
|
inline |
Stops the instance and its web server and its update thread.
Definition at line 372 of file sound4.impact.cl.hpp.
|
inline |
Stops the Web server
Definition at line 360 of file sound4.impact.cl.hpp.