[Jprogramming] What about wav's
bill lam
bbill.lam at gmail.com
Thu Feb 9 11:56:07 HKT 2012
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
More information about the Programming
mailing list