Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to play music file in Pascal?

Posted on 1998-08-01
3
Medium Priority
?
911 Views
Last Modified: 2010-05-18
1)how to play xm file in pascal? (better if in background)
please send me the sources of units by e-mail: slava_a@actor.ru

2) the same, concerning wav and mid files.

thanks!
0
Comment
Question by:slava_a
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
omsec earned 300 total points
ID: 1217245
Hello there...

To the first question, I'm sorry, you can't play XM (Fast Tracker II) Files in Pascal. Since XM is a very complex Audio Format it needs to run in 32bit Protected Mode. Turbo Pascal is a real Mode compiler anyway and Borland Pascal supports only 16bit Platform. The only one 32bit Pascal Compiler for DOS is called FPK Pascal, it's be most powerfullst beside some others student projects, but for these compilers are no sound enginges avaiable yet, since FPK is not 100% compatible to TP/BP.

If you wish to play Tracker Modules in background, which is a good idea, I recommend to use the MIDAS Digital Sound System and
play either MOD (ProTracker), S3M (Scream Stracker II) or Streams. Get MIDAS from http://www.s2.org/midas

WAV is are un-compressed raw data for the audio card, so if you want music for about 5 mins, these files would be huge (if you play'em at CD-Quality which is 44.1KHz, 16bit, ST there is 172KB Data for a Second (!)) And the MIDI thing, remember that MIDI sounds worse under 16bit DOS, there is no good comparison to Windows MIDI Players. But if you need WAV or MIDI Routines (note MIDI is hard to find for Pascal) you can let me know, I will see, if I have some source in my archive :)

greets, Roger
0
 
LVL 2

Expert Comment

by:omsec
ID: 1217246
sorry a thing I forgot to mention is, the only one case when you CAN play an XM - File using a 16bit Platform like TP/BP is if you are playing in on a GUS (Gravis Ultra Sound Card), since these cards are different from the SB (Sound Blaster) standard.
Note, MIDAS v0.40a is the highest version you can use under TP/BP because they do not support 16bit Compilers anymore in higher versions. Another possibility (but quite difficiult, I duno exactly how) is to use the Borland Delphi 3 CMD-Compiler to make 32bit executable for DOS...
0
 
LVL 1

Expert Comment

by:ichen
ID: 1217247
i have a WAV player Program in PASCAL.. if you want you can send me email to cool17@geocities.com
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

If you have come across a situation where you need to find some EDB mailbox recovery techniques, then here you will find the same. In this article, we will take you through three techniques using which you will be able to perform EDB recovery. You …
Take a look at these 6 Outlook Email management tools which can augment the working and performance of Microsoft Outlook to give you a more rewarding emailing experience.
Integration Management Part 2
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

963 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