Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "bass.h"
- #include "bassflac.h"
- HSTREAM s;
- void main() {
- BASS_PluginLoad("bassflac.dll", 0); //if Windows
- //BASS_PluginLoad("libbassflac.so", 0); //if Linux
- BASS_Init(-1, 44100, 0, 0, NULL);
- s = BASS_StreamCreateFile(FALSE, "Ok Goodnight - Rapture.flac", 0, 0, BASS_STREAM_AUTOFREE); //change the string for whatever filename
- BASS_ChannelPlay(s, FALSE);
- getchar();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement