Re: [MacPerl-Toolbox] Sound Manager Toolbox docs?
[email protected] (Chris Nandor) Sun, 10 Nov 2002 18:00:57 -0500
| Newsgroups | perl.macperl.toolbox |
|---|---|
| Message-ID | <p05200f0db9f4930c2240@[10.0.1.177]> |
At 17:25 -0500 2002.11.10, Elliott Moreton wrote: >I'd like to have a MacPerl 5.6.1b3 script play a sound file (not a >resource, but a file; .wav, .aiff, or .raw) on a Power Book. Any reason you aren't using MacPerl 5.6.1r1? It's the most recent, and the beta versions are not supported. >However, I can't find any documentation on the MacPerl Sound Manager >Toolbox Module. When I go to the menu bar and choose Help : Macintosh >Toolbox Manager : Sound Manager (which should bring up a man page in >Shuck), I get 'Can't open that file, because a "Directory or File not >found" error occurred'. Other Toolbox man pages come up just fine. A >Google search on "MacPerl 'Sound Manager'" turns up nothing useful. My >MacPerl installation does have sound.pm, just no documentation. > >Does anyone know where to find the missing documentation? I don't know why the Help menu doesn't show it (I'll look into it), but going to Shuck and the Go -> Lookup ... menu item and entering "Mac::Sound" will give you the docmentation, which tells you two things: 1. The API is documented in Inside Macintosh, and you should go there for details 2. The MacPerl interface to the Sound Manager is not documented. So it wouldn't help much even if the menu item for it worked. :-) However, if you select the View -> Show Code Sections menu item, you can see the API, in the Perl and XS code. That will show you what functions are available. See Inside Macintosh for the sound functions you want, and how to use them. You can start here: http://developer.apple.com/techpubs/mac/Sound/Sound-2.html Note also that in Carbon, you don't play sounds from files; Apple recommends instead to use the QuickTime API. -- Chris Nandor [email protected] http://pudge.net/ Open Source Development Network [email protected] http://osdn.com/