EASy68K  
It is currently Thu Dec 14, 2017 8:47 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Tue Nov 07, 2017 6:27 pm 
Offline

Joined: Fri Aug 14, 2015 2:12 pm
Posts: 15
updated files at bottom of thread


Last edited by ESmith on Wed Nov 29, 2017 1:45 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Tue Nov 07, 2017 9:01 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1056
I updated the website with these files.

_________________
Prof. Kelly


Top
 Profile  
 
PostPosted: Sat Nov 25, 2017 6:01 pm 
Offline

Joined: Fri Aug 14, 2015 2:12 pm
Posts: 15
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.


Top
 Profile  
 
PostPosted: Sat Nov 25, 2017 7:23 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1056
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


_________________
Prof. Kelly


Top
 Profile  
 
PostPosted: Mon Nov 27, 2017 4:09 am 
Offline

Joined: Fri Aug 14, 2015 2:12 pm
Posts: 15
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 10 times
Top
 Profile  
 
PostPosted: Mon Nov 27, 2017 10:41 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1056
The files on the website have been updated.

_________________
Prof. Kelly


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group