#include #include #include int PASCAL WinMain(HINSTANCE hInstance,HINSTANCE /*hPrevInstance*/,LPSTR /*lpszCmdLine*/,int /*nCmdShow*/) { Array waveForms; PureWave pureWave; waveForms.size(2); try { // waveForms[0].open("D:\\Program Files\\FruityLoops3\\Samples\\Packs\\Basic\\Kicks\\Kick.wav"); // waveForms[0].open("D:\\Program Files\\FruityLoops3\\Samples\\Packs\\Basic\\snares\\xr10Snare.wav"); waveForms[0].open("D:\\200308.wav"); } catch(Exception &exception) { ::OutputDebugString("Failed to open sample"); return false; } ::OutputDebugString(waveForms[0].toString()+String("\n")); // waveForms[0].convert(PureSampleEx::Bit16); pureWave.play(waveForms[0],DeviceHandler::Wait); ::Sleep(125); pureWave.play(waveForms[0],DeviceHandler::Wait); ::Sleep(125); /* pureWave.play(waveForms[1],DeviceHandler::Wait); ::Sleep(250); pureWave.play(waveForms[1],DeviceHandler::Wait); ::Sleep(125); */ return false; }