The PolyTone class provides a convenient mechanism for defining a series or collection of tones to be played sequentially via a single call to the PolyTone.Play method.
Any public static (Shared in Visual Basic) members of this type are safe for multi-threaded operations. Instance members are not guaranteed to be thread safe and each instance should be used only within a single thread.
Namespace: Honeywell.Mobility.Device.Audio
Assembly: Honeywell.Mobility.Device.DLL
The PolyTone constructor accepts a variable list of single-tone entries of type Honeywell.Mobility.Device.Audio.Tone, but at least one entry is required.
Tones generated by the PolyTone class execute synchronously in the thread from which they are called. For example, if a particular instance specifies a tone sequence of 5 seconds duration, the calling thread is blocked for 5 seconds while PolyTone.Play generates the sequence. You may want to dedicate a separate thread for playing tone sequences in applications that are "performance-sensitive."
Only a single tone sequence can be played at any given time, regardless of the number of threads that may attempt to call the PolyTone.Play method concurrently.