"Thomas B. Lerman" wrote:
>
> Assuming all Windows . . . Maybe something simplier may be to invent a new
> message that the server sends a "play sound" command followed by a "which
> sound event to play". The sound on the client side would be played according
> to the event number (using maybe PlaySoundEvent function) -or- the event may
> be a string (using maybe PlaySound function).
>
> The above is just a thought anyway. It may be able to be expanded to work on
> other platforms.
But how to make it robust.
I suggest that you use a model similar to fonts, with the event numbers
as members of a dictionary, and the sounds corresponding to the glyphs.
So the client & server argue about the font name/version and when that
is resolved, the sound is played according the event number private to
that sound collection (cf font).
so in the server app:
VSoundCollection * sounds = new VSoundCollection("NuffieldsOddSounds");
play_sound_glyph(sounds,"open");
play_sound_num(sounds,1234);
in the vncviewer:
on receiving a sound event:
play_sound_event(uint32 SoundFontNumber,uint16 SoundNumber);
if (SoundFontNumber not known) go and getit or have a whinge
--
Simon Dales, Publication Software Engineer
"The impossible is easy"
Nuffield Press Ltd., 21 Nuffield Way, Abingdon, Oxford, OX14 1RL,UK
+44-1235-558637
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to [EMAIL PROTECTED]
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------