Author Topic: Playing sound  (Read 1785 times)

0 Members and 1 Guest are viewing this topic.

akolade

  • Guest
Playing sound
« on: December 09, 2003, 05:09:43 PM »
I'm trying to make an AGI game in AGI Studio. I cannot get sound to work!
I thought all you had to do was load it then play it..like this:

load.sound(75);
sound(75, f205);

Now, I have an example game I've been looking at, and it works, yet mine never plays any sound.
The sound flag is on and everything.. anyone have a very simple example they can show me that works??

Thanks
-ako



Offline Eigen

Re:Playing sound
« Reply #1 on: December 10, 2003, 04:30:02 AM »
You're loading the sound right, but it's probably that your example game has sound patched and yours not. Try the SB patch (attachement). Just copy it into your game folder and run it. if it doesn't work, then try with NAGI.



-Eigen
Artificial Intelligence Competition

Martin Sticht

  • Guest
Re:Playing sound
« Reply #2 on: December 10, 2003, 02:11:04 PM »
I'm trying to make an AGI game in AGI Studio. I cannot get sound to work!
I thought all you had to do was load it then play it..like this:

load.sound(75);
sound(75, f205);

Now, I have an example game I've been looking at, and it works, yet mine never plays any sound.
The sound flag is on and everything.. anyone have a very simple example they can show me that works??

Thanks
-ako

Perhaps the sound-command is executed every cycle. Be sure it will be executed only once and try it again.

akolade

  • Guest
Re:Playing sound
« Reply #3 on: December 12, 2003, 08:34:57 AM »
Thanks. Ya, the problem was my interpreter. It works now with an updated version.


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.034 seconds with 16 queries.