mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-06 22:50:31 -04:00
github publish
This commit is contained in:
commit
506e23bf32
542 changed files with 120675 additions and 0 deletions
27
Windows/WinAmpInterface.cpp
Normal file
27
Windows/WinAmpInterface.cpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
// 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue