Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Delphi Programming question

Posted on 1997-08-28
4
153 Views
Last Modified: 2010-04-06
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
Comment
Question by:nir_l
  • 2
4 Comments
 
LVL 3

Expert Comment

by:mirek071497
ID: 1342888
do you need load to streams some files and then play or you need create MIDI in memory ?
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1342889
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
 

Author Comment

by:nir_l
ID: 1342890
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
 
LVL 3

Accepted Solution

by:
mirek071497 earned 90 total points
ID: 1342891
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question