Home  |  Linux  | Mysql  | PHP  | XML
From:Chris Nandor Date:Sun Nov 10 20:23:29 2002
Subject:Re: [MacPerl-Toolbox] Sound Manager Toolbox docs?
At 18:25 -0500 2002.11.10, Elliott Moreton wrote:
>> 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.

No, you are not required to use Carbon, that was merely an aside, in case
it applied.  You can use whatever APIs are available: on Mac OS, you can
use the standard Mac OS API, or the Carbon API.  On Mac OS X, you can use
the standard Mac OS API, but only under Classic; you can use the Carbon API
or Cocoa API otherwise.

So in MacPerl, yes, I think you can play a file.  I don't know how offhand,
but hopefully the information I pointed you to will help.

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/
Navigate in group perl.macperl.toolbox at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants