[plt-scheme] audio

From: John Clements (clements at brinckerhoff.org)
Date: Fri Jun 6 15:26:42 EDT 2008

On Jun 6, 2008, at 12:21 PM, John Clements wrote:

>
> On Jun 5, 2008, at 7:32 AM, Atmam Ta wrote:
>
>> Hi,
>>
>> I would like to play a sound file and be able to pause it in  
>> response to a user event (or alternatively, play a short segment of  
>> an audio file). Is this possible in PLT-Scheme? I have not found  
>> any library for such tasks...
>
> I'm not aware of such a library. I'm guessing that the difficulty  
> here is in supplying something cross-platform.  It would probably be  
> (relatively) simple, though, to use the FFI to construct a PLaneT  
> package that works on one particular platform.

FWIW, I just took a look at how to do it in OS X, and I came up with  
this interface:

http://developer.apple.com/documentation/MusicAudio/Conceptual/AudioQueueProgrammingGuide/AQPlayback/chapter_4_section_1.html#/ 
/apple_ref/doc/uid/TP40005343-CH3-SW1

Unfortunately, the interface is a bit too low-level to be a one- or  
two-hour project...

Ah well.

John Clements

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2484 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20080606/27cabb9e/attachment.p7s>

Posted on the users mailing list.