~q3cpma/mus

ref: cf29c2237d0c99e5240a55895c07564ef4635392 mus/mus_player/filter.h -rw-r--r-- 483 bytes
cf29c223q3cpma Add a #pragma once to the new xoshiro128plus.h header 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>


/* Interleave the channels inbuf[0] and inbuf[1] into outbuf */
void interleave16_stereo(const int32_t *restrict inbuf[],
	int16_t *restrict outbuf, size_t nbsample);

/* Scale all the samples of buf by gain */
void apply_gain(int16_t *restrict buf, size_t nbsample, float gain);

/* Copy buf to outfd. Return false if an error occured */
bool write_pcm(int16_t *restrict buf, int outfd, size_t nbsample);