// GetMediaSourceType
// copies the media source type ("WAV", "MIDI", etc) to typebuf
void (*GetMediaSourceType)(PCM_source* source, char* typebuf, int typebuf_sz);
// GetMediaSourceType
// copies the media source type ("WAV", "MIDI", etc) to typebuf
void (*GetMediaSourceType)(PCM_source* source, char* typebuf, int typebuf_sz);
What does typebuf_sz determine here ?
You need to pass in the size of the typebuf with that. (Because raw C arrays or pointers to arrays do not carry the size information with them.)