mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-05 06:00:33 -04:00
27 lines
601 B
C++
27 lines
601 B
C++
// WinAmpInterface.cpp : Defines the entry point for the console application.
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "WAInputPlugin.h"
|
|
#include "WaveOut.h"
|
|
#include "waplayer.h"
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
WAPlayer player;
|
|
player.LoadPlugins("C:\\Program Files\\Winamp\\Plugins");
|
|
const char *name="\\\\bredy-doma\\d$\\MUSIC\\S3M\\s3m\\CTGOBLIN.S3M";
|
|
WAInputPlugin *plug=player.SelectBestPlugin(name);
|
|
|
|
WaveOut output;
|
|
plug->AttachOutput(&output);
|
|
plug->Play(name);
|
|
while (kbhit()==0 && !plug->IsFinished()) Sleep(500);
|
|
plug->Stop();
|
|
plug->AttachOutput(0);
|
|
|
|
|
|
|
|
return 0;
|
|
}
|