Skip to content

Select a driver

Ross Gouldthorpe edited this page Apr 7, 2017 · 1 revision

Selecting a Driver

Selecting a driver should be the first ting done when using SharpMik, this is because the driver will load and store all the samples for the module. So because of this you should never change a driver once you have loaded a mod.

Selecting a driver is very simple

ModDriver.LoadDriver<WavDriver>();
ModDriver.Init("Test1.wav");

In this sample we have set the driver to the wave writer driver and told it to write to a file called "Test1.wav". The init function can take string that will be passed to the driver when its setup. Not all drivers will use this string.

Clone this wiki locally