#include #include #include "load.h" #include struct mossrose_sound_t * load_wav(const char *filename) { WavFile *audio = wav_open(filename, "r"); if (audio == NULL) { fprintf(stderr, "Couldn't open wav file.\n"); return NULL; } printf("N of Channels: %d\nSample Rate: %d\nSample Size: %d\n" "Length: %d\n" "Sub format: %d\n", wav_get_num_channels(audio), wav_get_sample_rate(audio), wav_get_sample_size(audio), wav_get_length(audio), wav_get_sub_format(audio)); wav_close(audio); return NULL; }