Midi i c
hejJeg har et consolprogram.
nu kunne jeg godt tænke mit at spille en lille midifil mens den kører - ikke noget fancy
jeg har søgt lidt rundt om kring - men ik ringtig fundet noget jeg kunne bruge (læs: forstå)
så
nogen der kunne hjælpe mig på vej?
har kigget lidt på #include <windows.h>
#include <stdio.h>
http://www.eksperten.dk/spm/388046
og på
http://www.codeproject.com/audio/mididemocp.asp
--> Another Midi Player using the MMSystem Interface
In the MSDN you find a sample code which also plays Midi files without DirectX. (search for "MidiPlyr") It uses the midiOutxxx() and midiStreamxxx() Interface of WinMM.Dll (This interface is also used by WinAmp). The bugs in Windows 2000 and XP described above do not affect MidiPlyr. It works perfectly on all platforms. But this sample code is EXTREMELY complex. (and written in pure C)
men jeg kan ikk se hvordan jeg dog skla indplementerer det (super simpel kode?)