[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] DisposeSpeechChannel?



At 2:15 PM -0500 9/4/99, Greenblatt & Seay wrote:
>Is there any harm in exiting a MacPerl program that uses Mac::Speech, and
>that has opened and used one or more speech channels (NewSpeechChannel),
>without closing those channels (DisposeSpeechChannel) first?

It appears not 
(<http://developer.apple.com/techpubs/mac/Sound/Sound-234.html>):
-----
The Speech Manager releases any speech channels that have not been 
explicitly disposed of by an application when the application quits. 
In general, however, your application should dispose of any speech 
channels it has created whenever it receives a suspend event. This 
ensures that other applications can take full advantage of Speech 
Manager and Sound Manager capabilities.
-----

What that says about suspend events is interesting, though.  How 
exactly does one go about getting suspend events from MacPerl?  You'd 
normally switch on eve->what where eve is returned from 
WaitNextEvent, but Events.pm's WaitNextEvent doesn't return 
anything....

Just wondering,
Eric

--
Eric Albert                     ejalbert@cs.stanford.edu
http://www.stanford.edu/~ejalbert/

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org