AnnouncerPlayItem Class |
Namespace: Telogis.GeoBase.Navigation.Announcements
The AnnouncerPlayItem type exposes the following members.
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString |
Converts the AnnouncerPlayItem to a human-readable string representation.
(Overrides ObjectToString.) |
XmlWaveAnnouncer xwa = new XmlWaveAnnouncer(); // To play a sound file in the langs folder e.g. the ReachDest.wav file WaveAnnouncer.PlayItem p1 = xwa.CreatePlayItem("ReachDest"); xwa.Play(p1); // To play a phrase from a series of sound files in the langs folder // e.g. the phrase "Turn left in one hundred and twenty meters" WaveAnnouncer.PlayItem pi = xwa.CreatePlayItem("TurnL in 100 and 20 meters"); xwa.Play(pi); // To play an announcement using the XmlWaveAnnouncer's messages bundle // e.g. Arrival announcement WaveAnnouncer.PlayItem p2 = xwa.CreatePlayItem("Announcements", "gb_arrived", null); xwa.Play(p2);