I downloaded the winmm and unzipped it. If I go to files in "computer" and 
click on the  .wav  it will play. I have left the player open

If I run the line you sent I get a  1  in the "Term" , but I do not hear the 
sound.

Linda

-----Original Message-----
From: programming-boun...@jsoftware.com 
[mailto:programming-boun...@jsoftware.com] On Behalf Of bill lam
Sent: Wednesday, February 08, 2012 10:56 PM
To: programming@jsoftware.com
Subject: Re: [Jprogramming] What about wav's

gtk itself does not handle sound. you have to use platform dependent
solution. for window, try (untested)

'winmm PlaySoundA > i *c x i'&cd 'c:\j406\willie\01will.wav';0;0

or the unicode version
'winmm PlaySoundW > i *w x i'&cd (uucp 'c:\j406\willie\01will.wav)';0;0

Срд, 08 Фев 2012, Linda Alvord писал(а):
> I have an application which calls ( or should call)  64 image and 64 sound
> files.  With your help I've gotten all the images working nicely in J7.
> 
> Using J406 I made a folder with all the images and sound files plus
> mplayer2.exe.  The player will no longer play a  .wav  file in Microsoft
> Vista. 
> 
> Here's a sample of the code that used to work:
> 
> wd'winexec"c:\j406\willie\mplayer2.exec:\j406\willie\01will.wav";'
> 
> (It is impossible to insert the spaces in an e-mail. They should appear
> after wd , after winexec , and after .exe )
> 
> Clicking on a button showed the image and then this code would play the
> .wav
> 
> I have been unable to incorporate sound in an application since then.  Even
> using J406 the application no longer works because of Vista.
> 
> Does anyone have a way to play  .wav  files in J701gtk ?
> 
> Thanks in advance.
> 
> Linda
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to