OpenMusic() and Link option

Discuss any general programming issues here
Post Reply
User avatar
NubeCheCorre
Posts: 77
Joined: Mon Mar 19, 2012 1:24 am
Contact:

OpenMusic() and Link option

Post by NubeCheCorre »

As title said, i'd like to know if i can use the link option with the function OpenMusic. It is available with the preprocessor command @MUSIC but it seems not working with the function.. as i like to manually open and close files i don't wont to make my exe bigger than normal.. If i compile by hand the program and i use the no linking option, Hollywood doesn't link anything right?

User avatar
stefff285
Posts: 230
Joined: Sat Mar 03, 2012 12:59 pm
Location: dijon / france
Contact:

Re: OpenMusic() and Link option

Post by stefff285 »

hello hello

welcome !

as i forgot to welcome you ^^

i'm a beginner too but as i did as this

@MUSIC***** with the number and name of your music
playmusic******

as this it work for me

you can make
@SAMPLE
playsample

too

hollywood is cool for scripting, you will see in time :))))

regards

User avatar
NubeCheCorre
Posts: 77
Joined: Mon Mar 19, 2012 1:24 am
Contact:

Re: OpenMusic() and Link option

Post by NubeCheCorre »

hi :-)

yes i know thanks, but i was asking if i can set the link parameter with the command OpenMusic() to avoid linking the music to the executable in order to have a lighter exe ;-)

User avatar
Juan Carlos
Posts: 701
Joined: Mon Sep 06, 2010 1:02 pm
Contact:

Re: OpenMusic() and Link option

Post by Juan Carlos »

With OpenMusic(N, "Name / drawer") example: OpenMusic(1, "Turrican2_Remix.mod") and PlayMusic(1) you play the music file that it must be join the executable in a drawer is better if you have much mp3 files or ogg for example, only to give the path correctly with OpenMusic and to make an installer where it copy the executable and the sound files, or copy all in a single mode, even with a external file you can change the music only rename other file.

User avatar
NubeCheCorre
Posts: 77
Joined: Mon Mar 19, 2012 1:24 am
Contact:

Re: OpenMusic() and Link option

Post by NubeCheCorre »

ok thanks but what i am asking is if i can set the parameter link also for this command to avoid linking the music to the executable :)

User avatar
airsoftsoftwair
Posts: 4386
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: OpenMusic() and Link option

Post by airsoftsoftwair »

No, you cannot use the 'Link' tag with OpenMusic(). You need to use the preprocessor command @MUSIC for this.

Bugala
Posts: 932
Joined: Sun Feb 14, 2010 7:11 pm

Re: OpenMusic() and Link option

Post by Bugala »

Id i understood right, what you are wanting to do is to just play music without that piece of music being added to your executable.

Just dont use @MUSIC at all, but in your code simply use OpenMusic(), and it will simply open the music file without adding it to your executable.

But do remember when distributing that executable that if you are opening for example "music/musicfile.ogg" that "Music" folder and file "musicfile.ogg" in that folder need to exist or your program will fail to open that music file.

User avatar
NubeCheCorre
Posts: 77
Joined: Mon Mar 19, 2012 1:24 am
Contact:

Re: OpenMusic() and Link option

Post by NubeCheCorre »

that's what i mean, thank you :-)

Post Reply