Thanks to Pedja and Colin for responding. Pedja's suggestion won't work for me because 
I need to convert wave and aiff files at runtime, in projector. I don't know of a 
Lingo equivalent to "convert swa to wav," and that command doesn't even exist on the 
Mac. Colin's guess doesn't seem to apply because baFileExists() finds the file, and 
the Audio Xtra plays the file fine. Here's the complete problem, using AudioXtra, 
which in turn uses Director's built-in 32 Kbs mp3  (as I understand it):

PUT baFileExists(locInputFile)
-- 1
PUT locOutputFile
-- "C:\WALSampler\WalSampler\test.mp3"
PUT axLoadSound("Current", "file", locInputFile)
-- 0
PUT axGetSoundList()
-- ["Test", "Current"]
PUT axPlay(locCurrSoundName)
-- 0 [the sound plays fine]
PUT axGetEnvironmentInfo("convertNumChannels") 
-- 1
PUT axGetEnvironmentInfo("convertSampleRate")
-- 44100
PUT axGetEnvironmentInfo("convertSampleDepth")
-- 16
locFormatString = "MPEG3"
PUT axGetEnvironmentInfo("availableConversionFormats") contains locFormatString
-- 1
PUT axConvertToFile ( locCurrSoundName, locOutputFile, locFormatString) 
-- -1101

-1101 is not an AudioXtra error code.

Any tips would be appreciated.

Slava

At 09:49 AM 7/11/04 -0400, you wrote:
>I think that error -1101 is file/folder not found. That would suggest you're trying 
>to read from a file that isn't there.
>
>[To remove yourself from this list, or to change to digest mode, go to 
>http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
>PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
>with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to