• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: do shell sounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell sounds


  • Subject: Re: do shell sounds
  • From: David Marshall <email@hidden>
  • Date: Fri, 26 Dec 2008 16:30:52 -0500

On Fri, 26 Dec 2008 19:01:33 +0100, Axel Luttgens wrote:

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"... :-(

Thanks for the pointer, Axel.

According to that header file, the 'dta?' I encountered with some other files indicates a kAudioFileInvalidFileError ("The file is malformed, or otherwise not a valid instance of an audio file of its type.")

Some of the files that returned this error via afplay were old OS 9 files, so that's not too surprising a result (one was a .wma file with a file type of "Mp3" , which plays fine in QuickTime Player when double-clicked), but I also got the 'dta?' error with a newly- purchased .m4b (a protected MPEG-4 file).

Too bad afplay is so poorly documented.

- - - - -

Dave
_______________________________________________
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
  • Prev by Date: Re: on the lack of documentation (was: Re: on neophytes vs perfectionists)
  • Next by Date: Re: Things I thought I knew, but didn't - variable scope in repeat loops
  • Previous by thread: Re: do shell sounds
  • Next by thread: Transmit Help Needed - Applescript Error : Transmit got an error : AppleEvent timed out
  • Index(es):
    • Date
    • Thread