want to know how to set the handles of the BASS libraries.

Mac OSX specific forum
dman10001
User
User
Posts: 55
Joined: Mon Feb 25, 2013 3:04 pm

want to know how to set the handles of the BASS libraries.

Post by dman10001 »

Trying to put the handles in the right order to get it working.
What I'm doing wrong?
here are the settings I'm trying to put in order :

Code: Select all


   
IncludeFile "bass.pbi"
IncludeFile "bass_fx.pbi"

Global w = 540
Global h = 500
Global addr.s
Global Source.l
Global Reverse.l
Global Tempo.l
Global Quit = 0
; 
InitMouse()
;InitSprite()


OpenWindow(0, 0, 0, w, h, "Scratch Demo", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)

BASS_Init(-1, 44100, 0, 0, 0)

;Thread = CreateThread(@ListView(), 0)

        addr.s = "Mack Wilds - Keepin It Real (prod. DJ Premier).mp3" ;Mack Wilds -Henny (Audio).mp3
  

        Source.l   = BASS_StreamCreateFile(0,@addr, 0, 0, #BASS_STREAM_DECODE | #BASS_STREAM_PRESCAN | #BASS_SAMPLE_FLOAT )
        Reverse.l  = BASS_FX_ReverseCreate(Source, 2, #BASS_STREAM_DECODE ) 
        Tempo.l   = BASS_FX_TempoCreate(Reverse, #BASS_FX_FREESOURCE ) 

        
        ;BASS_ChannelSetPosition(Tempo, 0, #BASS_POS_BYTE)
        ;BASS_ChannelSetAttribute(Source, #BASS_ATTRIB_REVERSE_DIR, #BASS_FX_RVS_FORWARD)
        ;BASS_ChannelSetAttribute(Tempo, #BASS_ATTRIB_REVERSE_DIR, #BASS_FX_RVS_REVERSE)