Make types compatible, change from int to size_t

This commit is contained in:
Holger Vogt 2024-08-11 11:23:32 +02:00
parent 77efe61175
commit 46865b290e
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ static void* my_open_sf(char* fn, int nchannel) {
return ((void*)d);
}
static int my_write_sf(void* d, float val) {
static size_t my_write_sf(void* d, float val) {
SSFILE* p = (SSFILE*)d;
p->sf_buf[p->sf_bptr++] = val;
if (p->sf_bptr >= p->sf_channels) {
@ -120,7 +120,7 @@ typedef struct SP_BUF {
static void (*p_close)(void*);
static void* (*p_open)(char*, int);
static int (*p_write)(void*, float);
static size_t (*p_write)(void*, float);
static void* outfile;
static uint32_t sample;
static int sp_nchannel;