leviathan-2.0

This commit is contained in:
2025-06-15 10:24:37 +03:00
parent 957a823d24
commit 076ee0be68
29 changed files with 16509 additions and 1 deletions

39
src/song.h Normal file
View File

@ -0,0 +1,39 @@
#pragma once
#pragma warning(disable:995)
#include <dshow.h>
#pragma warning(default:995)
namespace Leviathan
{
class Song
{
public:
Song();
Song(LPCWSTR path);
~Song();
int play();
int pause();
int toggle();
bool is_playing();
int seek(long double position);
long double getTime();
long double getLength();
private:
long double length;
bool playing;
IMediaControl * mediaControl;
IMediaSeeking * mediaSeeking;
IBasicAudio * audioControl;
};
}