Here's an example about loading music from memory
'---------------------------------------------------------
'
'   Bass Music Player - Loading from Memory using Bin2Bas
'
'   Code : Rbraz - 2006
'
'--------------------------------------------------------
option explicit
'Includes
#include once "bass.bi"
#include once "windows.bi"
'Include Music
#include "music.bas
 
    Dim Shared module as HMUSIC
  
    'Initialyze Bass system
	if( BASS_GetVersion( ) < MAKELONG(2,2) ) then
        MessageBox( NULL, "Error: BASS version 2.2 or above required", "Bass Music Player", MB_ICONERROR )
		BASS_Free()   
        end -1
	end if
	
	if( not BASS_Init( -1, 44100, 0, 0, 0 ) ) then
        MessageBox( NULL, "Error: BASS_Init failed", "Bass Music Player", MB_ICONERROR )
		BASS_Free()
        end -1
	end if
    'Load module from memory
    module = BASS_MusicLoad( TRUE, _                    '    BOOL mem,
                            @music(0) , _               '    void *file,
                            0, _                        '    DWORD offset,
                            50601, _                    '    DWORD length,
                            BASS_MUSIC_AUTOFREE or _    '    DWORD flags,
                            BASS_MUSIC_RAMPS    or _    '
                            BASS_MUSIC_PRESCAN  or _    '
                            BASS_MUSIC_SURROUND,   _    '
                                0 )                     '    DWORD freq
                                                           
	if( module = 0 ) then
		MessageBox( NULL, "Can't load music "  , "Bass Music Player", MB_ICONERROR )
		BASS_Free()
        end -1
    else
        BASS_ChannelPlay(module, TRUE)
	end if
    
    MessageBox( NULL, "Playing :) ..."  , "Bass Music Player", MB_ICONEXCLAMATION )
    
    BASS_Free()