Oh I completely neglected that libsndfile automatically loads any filetype it supports. You can open FLAC's as well as wave's and other filetypes in the waveplayer example. But it loads the file all at once and doesn't use any buffering, so you can't load really big files because the memory allocation will fail.