(Somebody will now tell me it's easier than this

Code: Select all
Global *BASS_Filename
Procedure SetBASSFilename(filename.s)
If *BASS_Filename
FreeMemory (*BASS_Filename)
EndIf
*BASS_FILENAME=AllocateMemory(Len(filename)+1)
PokeS(*BASS_FILENAME,filename,-1,#PB_Ascii)
EndProcedure
Code: Select all
SetBASSFilename(songname)
Handle = BASS_StreamCreateFile(0, *BASS_Filename, 0, 0, 0)
You could also use this for any strings that need to be in Ascii.