Hello, I've found that : a source code for a YM player.
http://bulba.at.kz/YmEngineDelphi10.rar
It's for delphi.
I try to make an easy to use dll. But there is a mysterious bug in my code source. Can someone help me to find it ?
Thanx
library YmPlay;
interface
uses
SysUtils,
Classes,
CYmGlobals,
CYmPlayer in 'CYmPlayer.pas';
procedure Play();stdcall; external
private
m_mode: CYmPlay;
implementation
procedure Play();stdcall;external
begin
m_mode.Create;
//TYmMixerMode(CYmEngine(MixerChannels));
if m_mode.loadFromFile('hitme.ym') then
m_mode.Play();
else
raise Exception.Create('Sorry, there went something wrong');
end;
exports Play name 'Play';
procedure Stop();stdcall;external
begin
m_mode.Stop();
end;
exports Stop name 'Stop';
end.
My source use some units you can find in the link above...