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.

Last edited Jul 2, 2012 at 11:53 AM by TheGouldfish, version 1

Comments

No comments yet.