Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: do shell sounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell sounds



Le 26 déc. 08 à 18:33, David Marshall a écrit :


On Dec 26, 2008, at 10:56 AM, Robert Poland wrote:

David,

afplay /Users/rpoland/Documents/clutter/Sounds/click.aiff
Error: ExtAudioFileOpen failed ('wht?')

I guess I'm out of my depth here.

I experimented with the System sound Glass.aiff, moving a copy to various locations within my home directory, and had no problem playing it either directly from the command line or via do shell script.

I was also able to use afplay to play .mp3 files, but ran into an identical error with some OS 9 Sound Files, and a similar error (Error: ExtAudioFileOpen failed ('dta?') with some other file types.

Information on ExtAudioFileOpen errors is pretty sparse, and I'm not sure I'd understand it even if the three-letter identifiers were defined somewhere findable.

They may be found in this header file:

/System/Library/Frameworks/AudioToolbox.framework/Versions/A/Headers/ AudioFile.h

Sadly, kAudioFileUnspecifiedError (the symbolic name for the string "wht?") means: "An unspecified error has occurred"... :-(

Axel _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: do shell sounds (From: David Marshall <email@hidden>)
 >Re: do shell sounds (From: Robert Poland <email@hidden>)
 >Re: do shell sounds (From: David Marshall <email@hidden>)
 >Re: do shell sounds (From: Robert Poland <email@hidden>)
 >Re: do shell sounds (From: David Marshall <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.