Skip to content
Prev 5039 / 15075 Next

sound::setWavPlayer()

On Aug 28, 2008, at 3:04 AM, Hans-J?rg Bibiko wrote:

            
Fortunately all OSes have API that is independent of the sound card  
and it has nothing to do with the window servers. There is one API on  
Windows and one on Macs. For unix it's not as easy since there is no  
real standard across unices, but supporting OSS and/or ALSA should  
cover the need of the majority of users.
That is something you cannot easily do with command line tools but is  
trivial in the native implementation. In addition, you're not  
restricted to files, you could play off R functions or vectors...
I would dispute "better" here - if anything it's the easiest, because  
you're offloading the task to another application...
I suspect you're talking about something entirely different - JFrame  
won't give you any sound playback ;). But, yes, using Java would be  
one option except that Java is quite a heavy requirement for such  
task ...

Cheers,
Simon