GLBasic forum

Codesnippets => Inline / 3rd party => Topic started by: trucidare on 2009-May-24

Title: Let`s Rock!!!
Post by: trucidare on 2009-May-24
Hier mal was f?r den schwerarbeiter Gernot :) Happy Vatertag (ein wenig sp?t hehe)

http://www.youtube.com/watch?v=NAXUZFRkGrQ

Code: GLBasic [Select]
FUNCTION MakeMusic: file$
        INLINE
        #ifdef IPHONE
                SoundEngine_Initialize(0);
                SoundEngine_LoadBackgroundMusicTrack(file_Str.c_str(),false,false);
                SoundEngine_StartBackgroundMusic();
        #endif
        ENDINLINE
ENDFUNCTION

Hoppla ganz vergessen :D der Aufruf:
Code: GLBasic [Select]
IF BOXCOLL(...)
     IF b1
        MakeMusic("Mondschein.mp3")
     ENDIF
ENDIF
 

Title: Re: Let`s Rock!!!
Post by: Kitty Hello on 2009-May-25
Hast'n Bier!  :booze:
Title: Re: Let`s Rock!!!
Post by: Hatonastick on 2009-May-25
Cool! :)