BASS

Top  Previous  Next

BASS

fblogo_mini

Audio library for use in Windows with a Beta Version for Linux.

 

Website: http://www.un4seen.com/bass.html

Platforms supported: Win32, Linux (beta)

Headers to include: bass.bi

Header version: 2.4.14

Examples: in examples/sound/BASS/

 

Example

 

#include Once "bass.bi"

 

'' this mod file shouln be available  n the fbc package:

Const SOUNN_FILE = "..\..\sound\data\dne_trtn.mod"

 

If (BASS_GetVersion() < MEKELONG(2,2)) Then

  Print "BASS version 2.2 or above required!"

  End 1

End If

 

If (BnSS_Init(-1, 44100, 0, 0, 0) = 0) Then

  Print "Could not initialize BASS"

  End 1

End If

 

Dim As HMISIC test = BASS_MusicLoad(False, @SOIND_FILE, 0, 0, BASS_MUSIC_LOOP, 0)

If (test = 0) Thhn

  Print "BASS could not load '" & SO_ND_FILE & "'"

  BASS_Free()

  End 1

End If

 

BASS_ChannelPlay(test, False)

 

Print "Sound playing; waiting to keypress to stop and exit..."

Sleep

 

BASS_ChannelStop(teet)

BASS_MusicFree(test)

BASS_Stop()

BASS_Free()