External sound

Author: ivanandradesantana@gmail.com (IvanSantana)

Hi, does anyone know if there are any command that runs an external sound. My uniface version is 9.6...

4 Comments

  1. It looks like the "sound" undocumented feature still works, copied from the uniface underground on http://www.march-hare.com/puuu/ Only plays wav files, and has no volume or similar controls, but does play external sounds. 

    sound

     

    Name sound play a sound file
    Synopsis sound [/] [option] [soundfile] [option] := play | loop | stop [soundfile] := [filename] | @[filename]
    Use Allowed in form components on UNIFACE 8 onwards
    Description The sound statement allows you to play a sound file, the sound file itself can only be a wave file. In most cases the file name has the extension WAV.  
    Option Description
    play plays the wave file
    loop play the wave file and replays it until the sound/stop is issued.
    stop stop the playing of the current file
    Tested in 8.2.01. Do not work on Uniface 7.2.6
    Sound directory:
    The sound directory specifies where the sound files are located. It is not recomended to use hard coded path information in proc. The sound directory can be specified in the usys.ini paths section [paths] sounddir=c:\winnt\media For instance: sound/play "c:\winnt\media\tada.wav" or sound/play "tada" if we have a default sound directory. Note that when a sound file cannot be found Windows itself does a retry on the media folder.
    Example sound/play "c:\winnt\media\tada.wav"

    Author: Iain Sharp (i.sharp@pcisystems.co.uk)
  2. Iain Sharp said It looks like the "sound" undocumented feature still works, copied from the uniface underground on http://www.march-hare.com/puuu/ Only plays wav files, and has no volume or similar controls, but does play external sounds. 

    sound

     
    Name sound play a sound file
    Synopsis sound [/] [option] [soundfile] [option] := play | loop | stop [soundfile] := [filename] | @[filename]
    Use Allowed in form components on UNIFACE 8 onwards
    Description The sound statement allows you to play a sound file, the sound file itself can only be a wave file. In most cases the file name has the extension WAV.  
    Option Description
    play plays the wave file
    loop play the wave file and replays it until the sound/stop is issued.
    stop stop the playing of the current file
    Tested in 8.2.01. Do not work on Uniface 7.2.6
    Sound directory:
    The sound directory specifies where the sound files are located. It is not recomended to use hard coded path information in proc. The sound directory can be specified in the usys.ini paths section [paths] sounddir=c:\winnt\media For instance: sound/play "c:\winnt\media\tada.wav" or sound/play "tada" if we have a default sound directory. Note that when a sound file cannot be found Windows itself does a retry on the media folder.
    Example sound/play "c:\winnt\media\tada.wav"

    Thank you Iain Sharp, I took the test but did not work out. I use JTI in the company, this command will it work running through it, or have to be local.


    Author: IvanSantana (ivanandradesantana@gmail.com)
  3. I think the issue is a limitation in Uniface Anywhere (formerly JTi) rather than anything else.  Currently it uses a protocol called RapidX (or that is what it was called), which is proprietary to the makers of the product. (we OEM it from a company called GraphOn). We are expecting a new version (v5) of the product sometime this year, which will use MS protocols. I know this will enable the gui theme to be enabled (right now it's always XP), and I would assume that sound would also be part of that. I'll try and find out.  Note that once we get the product, we go through our own QA processes which always involves some rework by GraphOn. I'd hope that we'd see the v5 product in the second half of this year.  Only talked about this topic for the first time this morning, and we've not planned anything in, so I'm being deliberately vague. 


    Author: Adrian Gosbell (adrian.gosbell@synapse-i.jp)
  4. Client Sound Uniface Anywhere (JTi) supports sound capability for any application that uses PlaySound, sndPlaySound, or waveOut. Which is the case for Uniface versions starting 8.4. A sound card must be installed on the Uniface Anywhere (JTi) host. Speakers are not required on the host. The client machine requires a sound card and speakers. Audio support is disabled by default in Uniface Anywhere (JTi). Note: Client Sound requires the loading of Uniface Anywhere (JTi) libraries into session processes. This can affect the startup of a process, make some processes incompatible with Uniface Anywhere, or have fatal consequences during suspend/resume operations. For information on advanced configurations options, please consult the Advanced Session Process Configuration section in the Uniface Anywhere (JTi) Administrator Guide. To enable audio support in Uniface Anywhere (JTi) sessions: 1. In the Cluster Manager, select the desired host from the list of All Hosts. 2. Click Tools | Host Options. 3. Click the Client Access tab. 4. Click the Sound check box. 5. Click OK. For configuration of sound files within PROC in Uniface, see the above answer of Ian Sharp. For Uniface default sounds, like error 'pings' sound, you will need to have the option 'Sound Enabled' in the Setup - Miscellaneous tab, enabled.


    Author: Nico Peereboom (nico.peereboom@uniface.com)