Advertisement
Guest User

Untitled

a guest
Jul 15th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include "bass.h"
  3. #include "bassflac.h"
  4.  
  5. HSTREAM s;
  6. void main() {
  7. BASS_PluginLoad("bassflac.dll", 0); //if Windows
  8. //BASS_PluginLoad("libbassflac.so", 0); //if Linux
  9. BASS_Init(-1, 44100, 0, 0, NULL);
  10. s = BASS_StreamCreateFile(FALSE, "Ok Goodnight - Rapture.flac", 0, 0, BASS_STREAM_AUTOFREE); //change the string for whatever filename
  11. BASS_ChannelPlay(s, FALSE);
  12. getchar();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement