mirror of https://github.com/mackron/miniaudio.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
860 B
C
36 lines
860 B
C
/* Include ma_ltrim_node.h after miniaudio.h */
|
|
#ifndef ma_ltrim_node_h
|
|
#define ma_ltrim_node_h
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
The trim node has one input and one output.
|
|
*/
|
|
typedef struct
|
|
{
|
|
ma_node_config nodeConfig;
|
|
ma_uint32 channels;
|
|
float threshold;
|
|
} ma_ltrim_node_config;
|
|
|
|
MA_API ma_ltrim_node_config ma_ltrim_node_config_init(ma_uint32 channels, float threshold);
|
|
|
|
|
|
typedef struct
|
|
{
|
|
ma_node_base baseNode;
|
|
float threshold;
|
|
ma_bool32 foundStart;
|
|
} ma_ltrim_node;
|
|
|
|
MA_API ma_result ma_ltrim_node_init(ma_node_graph* pNodeGraph, const ma_ltrim_node_config* pConfig, const ma_allocation_callbacks* pAllocationCallbacks, ma_ltrim_node* pTrimNode);
|
|
MA_API void ma_ltrim_node_uninit(ma_ltrim_node* pTrimNode, const ma_allocation_callbacks* pAllocationCallbacks);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* ma_ltrim_node_h */
|