feat: invert selected audio sample polarity without changing surrounding frames
This commit is contained in:
parent
9ae2e2a11c
commit
f528a169f8
7 changed files with 18 additions and 7 deletions
|
|
@ -15,7 +15,7 @@ void xtc_sample_destroy(xtc_sample *sample);
|
|||
xtc_result xtc_sample_info(const xtc_sample *sample,unsigned int *rate,size_t *frames);
|
||||
xtc_result xtc_sample_read(const xtc_sample *sample,size_t frame,float *out);
|
||||
xtc_result xtc_sample_analyze(const xtc_sample *sample,size_t begin,size_t end,xtc_sample_stats *out);
|
||||
typedef enum { XTC_SAMPLE_REVERSE } xtc_sample_operation;
|
||||
typedef enum { XTC_SAMPLE_REVERSE, XTC_SAMPLE_INVERT } xtc_sample_operation;
|
||||
/* Independent full-source result; only [begin,end) changes. Never mutates input.
|
||||
* amount is reserved/ignored for reversal. Failure preserves *out. */
|
||||
xtc_result xtc_sample_process(const xtc_sample *sample,size_t begin,size_t end,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue