I was able to play a wav file on Win7 using JGTK 32, using the J602 wav script.

    load 'c:/users/me/j602/addons/media/wav/wav.ijs'
    wavplay 'D:\13 Paganini_ Moto Perpetuo In C, Op. 11.wav'

Good luck,
David

On 2/9/2012 2:14, Linda Alvord wrote:
> 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
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to