Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How play music in Assembly?

Status
Not open for further replies.

pmcastillo

Newbie level 2
Joined
Oct 10, 2005
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,294
I'm a noob... How to play sounds on Assembly? I'm using TASM 2.0 on Win XP, on Intel P 4...
 

The same ways that you play sound using other languages, just with lots more work
to handle memory management etc.

You can load audio samples from a file. You can generate music using an algorithm that
produces a stream of samples. You can use midi synthesis.

A win32 program under XP has to call the windows API's to output sounds.
You can use waveOutOpen, the midi API or directx.

A DOS program under XP can use the old DOS methods of making sound such as the BIOS call
for making a beep in the speaker. I think an XP dos box has an emulation layer that acts like a soundblaster compatible card.
 

Ummmmm.... How to play in on DOS program? What BIOS call do I need?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top