<HTML>
<HEAD>
<TITLE>Re: [Q][NEWBIE]mp3 and other issues</TITLE>
</HEAD>
<BODY>
<FONT FACE="Arial">That sounds like a fun project.<BR>
<BR>
If you are having problems because the StreamingMP3Sounds class expects full path names, you could construct the complete file path from your “relative” one.<BR>
<BR>
Try something out like this. For this example, assume I have a folder named “Luna” inside my Squeak folder. And inside the “Luna” folder there is a file named “activeBottom.bmp”.<BR>
<BR>
fileName _ 'activeBottom.bmp'.<BR>
folderName _ 'Luna'.<BR>
folderDirectory _ FileDirectory default directoryNamed: folderName.<BR>
fullName _ folderDirectory fullNameFor: fileName.<BR>
<BR>
“FileDirectory default” always answers the directory containing your Squeak image file. Presumably you can establish a relative path from there without problem.<BR>
<BR>
The #directoryNamed: method will answer the directory of the named folder or sub-directory.<BR>
The #fullNameFor: method answers the full file path resolved which you could then pass on to the StreamingMP3Sounds class.<BR>
<BR>
Hope that helps,<BR>
<BR>
- Steve<BR>
<BR>
<BR>
On 5/22/02 9:39 PM, "Lic. Edgar J. De Cleene" <edgardec2001@yahoo.com.ar> wrote:<BR>
<BR>
</FONT><BLOCKQUOTE><FONT FACE="Verdana">I try to aded sound effects to our game in progress (TEG clone of Risk)<BR>
I record old series “Combat’ from TV with SoundJam on my Mac and do some cutting with mEdit b 1.03 and found this problems.<BR>
Cuttiings mp3 not playing in Squeak (original recording yes) <BR>
Other software on Mac working fine.<BR>
Also , I keep auxiliary files in a folder (.gif, .jpg, etc) for accessing .<BR>
I set the folder once at start and later if I wish use any of them only set the name of file ej, filexxx.gif.<BR>
This is not the case with mp3 files, seems the only method is tell the complete path to StreamingMP3Sound onFileNamed: path.<BR>
I appreciate any advice to this problems<BR>
Edgar De Cleene<BR>
</FONT></BLOCKQUOTE><FONT FACE="Arial"><BR>
</FONT>
</BODY>
</HTML>