2022-02-08 09:17:22 +11:00
|
|
|
/*
|
|
|
|
* C SUPPORT FUNCTIONS
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include <sndfile.h>
|
|
|
|
|
|
|
|
#include "support.h"
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------- */
|
|
|
|
int display_sf_info(SF_INFO *psf, char *text)
|
|
|
|
{
|
|
|
|
|
|
|
|
fprintf(stderr, " +-- sf info [%s] %p\n", text, psf);
|
|
|
|
|
|
|
|
fprintf(stderr, " | samplerate %d\n", psf->samplerate);
|
|
|
|
fprintf(stderr, " | channels %d\n", psf->channels);
|
2022-02-11 04:51:17 +11:00
|
|
|
fprintf(stderr, " | frames %ld\n", psf->frames);
|
2022-02-08 09:17:22 +11:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
/* --------------------------------------------------------------- */
|
|
|
|
|
|
|
|
void print_version(char *msg)
|
|
|
|
{
|
|
|
|
fprintf(stderr, "======== %s === compiled %s, %s\n", \
|
|
|
|
msg, __DATE__, __TIME__);
|
|
|
|
}
|
|
|
|
/* --------------------------------------------------------------- */
|