including a soundfile in a standalone

Feb 14, 2008 at 1:06pm

including a soundfile in a standalone

hi,

could somebody tell me how to include a soundfile in a standalone ?
i mean, i made an audio test application and i would like to have a soundfile to play in it permanently.
i can’t find the way to do it. i suppose the file has to be in the contents folder.

here’s this application: http://www.pan-etc.net/res/dev/TestAudio.zip
and source:

http://www.pan-etc.net/res/dev/TestAudio-src.zip

thx.
f./

#35814
Feb 14, 2008 at 1:35pm

#122523
Feb 14, 2008 at 8:44pm

it was so simple… :-)
thx a lot.

and coiuld you illustrate the second way with “; max sendapppath” message, please.

#122524
Feb 14, 2008 at 10:01pm

#122525
Feb 15, 2008 at 7:33am

yes. i’ll try it too.
thx.

f./
>>
> “; max sendapppath toto” will send the application path to a
> “receive toto” object. From that you can construct the absolute
> path of your sound file using [sprintf].
>
>
> ej
>
>

#122526

You must be logged in to reply to this topic.