On Sun, 10 Nov 2002, Chris Nandor wrote: > 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. I was following your advice in http://archive.develooper.com/macperl@perl.org/msg01725.html because of a problem with cpan-max. I suppose the message is well out of date. > 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: Ah. OK. Didn't know what kind of argument Lookup wanted; I'd tried "Sound" with no success. > Note also that in Carbon, you don't play sounds from files; Apple > recommends instead to use the QuickTime API. Must I use Carbon if my Mac has it? All I really want to do is get a one-channel sound sample with known sampling rate into a one-dimensional array and then play it through the headphones. Many thanks, emThread Previous | Thread Next