The IMMSpeed class provides the speed functions in frames-per-second and as a percentage. The percentage value refers to a percent of the maximum speed for the device. A case for when you might use a percentage follows. You currently are playing video at the device's fastest rate, 100 percent. You want to reduce the playback rate to only 60 percent of that rate. To do this, create an IMMSpeed(60) and pass it to the playAt function. If you want the video to playback at a specific frames-per-second value, use the frames-per-second format.
You can construct and destruct objects of this class.
![]() |
public:
virtual ~IMMSpeed()
Windows | OS/2 | AIX |
Yes | Yes | No |
![]() |
public:
IMMSpeed(Format format, unsigned long speed)
Windows | OS/2 | AIX |
Yes | Yes | No |
public:
IMMSpeed(unsigned long percent = 100)
Windows | OS/2 | AIX |
Yes | Yes | No |
Use these members to specify the speed as a percentage or in frames-per-second. These members return the current speed format and value.
![]() |
public:
Format format() const
Returns the current speed format. This is either in frames-per-second or percentage.
Windows | OS/2 | AIX |
Yes | Yes | No |
![]() |
public:
virtual unsigned long speed() const
Returns the speed value as either a percentage or in frames-per-second.
Windows | OS/2 | AIX |
Yes | Yes | No |
![]() |
enum Format { percentage=3, framesPerSecond }
Enumeration for specifying the way the speed is determined.
Windows | OS/2 | AIX |
Yes | Yes | No |