[Python-bugs-list] [ python-Bugs-490558 ] Missing Snd functions

noreply@sourceforge.net noreply@sourceforge.net
Tue, 05 Feb 2002 14:45:15 -0800


Bugs item #490558, was opened at 2001-12-08 02:14
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=490558&group_id=5470

Category: Macintosh
Group: Feature Request
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Jason Harper (jasonharper)
Assigned to: Jack Jansen (jackjansen)
Summary: Missing Snd functions

Initial Comment:
A few minor omissions in the Carbon.Snd module as of 
2.2b2:

SndPlay and SndStartFilePlay are exposed only as methods 
of sound channel objects.  However, these are usefully 
called with a NULL sound channel, in which case a 
channel is internally allocated for the duration of the 
call (and the 'async' parameter is ignored).

SndRecord is completely missing (as is SndRecordToFile, 
but that isn't supported in Carbon) - yes, there is 
SPBRecord, but that's a lower-level routine that doesn't 
present a user interface for recording.  If I'm 
understanding the bgen process correctly, this is 
because of a parameter of type ModalFilterUPP, which is 
blacklisted.  However, SndRecord would be useful even if 
this parameter wasn't supported (required to be None, 
perhaps): the Sound Manager documentation gives no hint 
as to why you'd even want to use a filterproc, and the 
sample code I can find always passes NULL.


----------------------------------------------------------------------

>Comment By: Jack Jansen (jackjansen)
Date: 2002-02-05 14:45

Message:
Logged In: YES 
user_id=45365

SndRecord (and SndRecordToFile in classic MacPython) are now supported in the CVS tree.

Exposing SndPlay and SndStartFilePlay as methods isn't all that useful, it's easy enough to call SndChannel(...).SndPlay(...), I think (and it's a lot of work:-)

I'm closing the bug report, feel free to reopen it if you think the SndPlay issue merits it.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=490558&group_id=5470