Does anyone know how to set CD/DVD burn speed (e.g. 4x, 10x) using IMAPI2?
Also, I first need to get the speeds supported by the media. How can I retrieve them?
To set the burn speed you can use the method IDiscFormat2Data::SetWriteSpeed from IDiscFormat2Data interface. It lets you request the maximum speed supported by optical media or specify the wanted burning speed.
In order to retrieve the supported write speeds by the burning device and current media you can use the method IDiscFormat2Data::get_SupportedWriteSpeeds
To check the current write speed you have the IDiscFormat2Data::get_CurrentWriteSpeed method.
Those methods use sectors per second instead of 4x, 10x, etc. You can convert from one to another using the following constants:
from imapi2.h header:
#define IMAPI_SECTORS_PER_SECOND_AT_1X_CD 75 #define IMAPI_SECTORS_PER_SECOND_AT_1X_DVD 680 #define IMAPI_SECTORS_PER_SECOND_AT_1X_BD 2195 #define IMAPI_SECTORS_PER_SECOND_AT_1X_HD_DVD 4568
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With