+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Newbie level 2
    Points: 1,385, Level: 8

    Join Date
    Oct 2005
    Posts
    2
    Helped
    0 / 0
    Points
    1,385
    Level
    8

    How play music in Assembly?

    I'm a noob... How to play sounds on Assembly? I'm using TASM 2.0 on Win XP, on Intel P 4...

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 2
    Points: 5,659, Level: 17

    Join Date
    Jun 2005
    Location
    Kent, UK
    Posts
    596
    Helped
    102 / 102
    Points
    5,659
    Level
    17

    How play music in Assembly?

    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.



    •   AltAdvertisement

        
       

  3. #3
    Newbie level 2
    Points: 1,385, Level: 8

    Join Date
    Oct 2005
    Posts
    2
    Helped
    0 / 0
    Points
    1,385
    Level
    8

    How play music in Assembly?

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



--[[ ]]--