• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

Delphi Programming question

I wish to play a MIDI file from memory, not from a file.
If you know a way to do it in Delphi1 it'd be appriciated.
0
nir_l
Asked:
nir_l
  • 2
1 Solution
 
mirek071497Commented:
do you need load to streams some files and then play or you need create MIDI in memory ?
0
 
ZifNabCommented:
Hi nir_1,

Have a look at this site, maybe there is something you need :

www.compulink.co.uk/~greenstone/midisoft.htm

Have fun,
c.u. ZifNab,
0
 
nir_lAuthor Commented:
I wish to be able to play a MIDI file that is in a memory stream. I have a compo to add files into my final .EXE. I can use the files as streams in my program. The problem is that I can't play a MIDI if it isn't a physical disk file, unlike the
command SndPlaysound which can also get a memory block as input... am I clear enough?
0
 
mirek071497Commented:
Sorry for the long time.

If you need only play from memory then this is easy

EXAMPLE:
var m : TMemoryStream;
begin
  m := TMemoryStream.Create;
  m.LoadFromFile( 'D:\TEST.WAV' );
  sndPlaySound( m.Memory, SND_MEMORY );
  m.Free;
end;
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now