Copyright © 2006-2018 MultiMedia Soft

CdDriveSpeedChange event

Previous pageReturn to chapter overviewNext page

Remarks

 

Occurs when the speed of the CD drive is automatically reduced after an error occurs during the reading of a CD track.

 

Automatic speed reduction, disabled by default, can be enabled through the CdDriveAutoSpeedSet method.

 

For further details about synchronization through Events see the How to synchronize the container application through events tutorial.

 

 

Syntax

 

[Visual Basic]

Public Event CdDriveSpeedChange As CdDriveSpeedChangeEventHandler


 

[C#]

public event CdDriveSpeedChangeEventHandler CdDriveSpeedChange;


 

[C++]

public: __event CdDriveSpeedChangeEventHandler CdDriveSpeedChange;


 

 

Event Data

 

The event handler receives an argument of type CdDriveReadErrorEventArgs having the following parameters:

 

Parameters

Description

 

 

nCdDriveIndex

Number representing the zero-based index of the CD drive that fired the event. The total number of available CD drives can be obtained using the GetCdDrivesCount method.

nNewSpeed

Number representing the new speed of the CD drive expressed in Kbytes per second.

You can divide the speed by 176.4 to get the real-time speed multiplier; if for example the returned values should be 7096, the operation to perform would be

7096 / 176.4 = "40x".