EASy68K
http://easy68k.com/EASy68Kforum/

updated games from E Smith
http://easy68k.com/EASy68Kforum/viewtopic.php?f=10&t=1604
Page 1 of 1

Author:  ESmith [ Tue Nov 07, 2017 6:27 pm ]
Post subject:  updated games from E Smith

updated files at bottom of thread

Author:  profkelly [ Tue Nov 07, 2017 9:01 pm ]
Post subject:  Re: updated games from E Smith

I updated the website with these files.

Author:  ESmith [ Sat Nov 25, 2017 6:01 pm ]
Post subject:  Re: updated games from E Smith

Hi all,
I am wondering if there are any tricks for playing multiple sound effects at the same time.
One thing my games suffer from is my inability to do this . When I was first writing them a saw that you could load them into a cue to play in succession, but not simultaneously.

For example, is there a way to tap into various sound players on the PC? Or are there any sound sampling tools that allow you to map wav files to keyboard and play multiple sounds simultaneously. This would be cheating I guess since it would be outside of easy68K but it would achieve the desired effect. Forgive me if this is a poor question.

Author:  profkelly [ Sat Nov 25, 2017 7:23 pm ]
Post subject:  Re: updated games from E Smith

The EASy68K trap tasks that use the DirectX player support playing multiple sounds at the same time. Those trap tasks are: 74, 75 and 77. See EASy68K help for details.

Code:
    ORG    $1000

START

* Load sounds into memory
    lea     zero,a1      load "zero" wav
    move    #0,d1        sound number 0
    move    #74,d0
    trap    #15

    lea     one,a1       load "one" wav
    move    #1,d1        sound number 1
    move    #74,d0
    trap    #15

    lea     roger,a1     load "roger" wav
    move    #2,d1        sound number 2
    move    #74,d0
    trap    #15

* Play sounds from memory
    move    #1,d1        play "one"
    move    #77,d0
    move    #0,d2        play sound once
    trap    #15

    move    #0,d1        play "zero"
    move    #77,d0
    move    #0,d2
    trap    #15

    move    #2,d1        play "roger"
    move    #77,d0
    move    #0,d2
    trap    #15

loop bra loop

    MOVE.B  #9,D0
    TRAP    #15         Halt Simulator

roger   dc.b    'roger.wav',0    sound file
zero    dc.b    '0.wav',0   
one     dc.b    '1.wav',0       

    END    START


Author:  ESmith [ Mon Nov 27, 2017 4:09 am ]
Post subject:  Re: updated games from E Smith

thanks it worked . makes a big difference !

attached is updated , now with multiple sounds played simultaneously.

Attachments:
E Smith Games 112617.zip [2.93 MiB]
Downloaded 235 times

Author:  profkelly [ Mon Nov 27, 2017 10:41 pm ]
Post subject:  Re: updated games from E Smith

The files on the website have been updated.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/