Super Sound System Dll (new: 3.4)
#21
Posted 03 September 2005 - 12:34 PM
#22
Posted 03 September 2005 - 12:44 PM
Maybe you didn't call the DLL?I put the dll in the GM6 folder and can't hear the ogg when I play it with the sound adder.
#23
Posted 03 September 2005 - 02:44 PM
Did you try the example?I put the dll in the GM6 folder and can't hear the ogg when I play it with the sound adder.
#24
Posted 22 October 2005 - 05:25 PM
This is how I called it:
SS_SetSoundPosition(handle,get_integer("New Position",50000));
I'm using GM6.1, by the way.
#25
Posted 22 October 2005 - 08:36 PM
Hmm that's right and it's very strange. I've got one test program in which it works and I'm using almost the same procedure in the DLL and it doesn't work. No idea why.The SS_SetSoundPosition fuction for this dll isn't working for me. All it does is restart the music.
This is how I called it:
SS_SetSoundPosition(handle,get_integer("New Position",50000));
I'm using GM6.1, by the way.
EDIT: There were two errors in the script and one error in the function. I have uploaded a fixed version. Here is the changed line (the last line) in the script SS_SetSoundPosition().
Replace last line with this:
return real(external_call(global.dll_SS_SetSoundPosition,argument0,strin g(argument1)))+1;
You don't need to download again if you're not checking the result. The command will work properly with the old dll and the new script, but it will return 0 whatever garbage you put into it. The fixed versions returns 0 only on failure.
Edited by tsg1zzn, 22 October 2005 - 08:49 PM.
#26
Posted 22 October 2005 - 08:50 PM
#27
Posted 22 October 2005 - 09:04 PM
#28
Posted 27 October 2005 - 01:16 PM
Many thanks
Great DLL
Terry
#29
Posted 27 October 2005 - 02:45 PM
if SS_IsSoundPlaying(sound) then begin
SS_PlaySound(othersound);
end;
#30
Posted 09 November 2005 - 06:29 PM
thanks
terry
#31
Posted 09 November 2005 - 07:21 PM
Hi again, just wodering if you knew how to make it so that if sound is playing it will not play the song again, cos at the moment when i restart my game the song plays 2 times
thanks
terry
if SS_IsSoundPlaying(handle) = 0 then begin SS_PlaySound(handle); end;
But, are you sure you don't also don't all the sound files again when you restart the game? If you do, your game will take lots of memory after some time.
#32
Posted 10 November 2005 - 04:47 PM
#33
Posted 10 November 2005 - 06:27 PM
#34
Posted 12 November 2005 - 05:18 PM
EDIT: I noticed that the song finishes before the song position reaches the length variable.
Edited by GamerGuy12188, 12 November 2005 - 05:21 PM.
#35
Posted 12 November 2005 - 09:00 PM
Most likely this is because the file has some silence at the end, this is normal. Use a program like Audacity to cut off the silence so that the file loops nicer.I have a question. When I loop a song, there is a half-second pause before it plays again. I want it to replay immediately, so that the song seems to be continuous. Is this possible?
EDIT: I noticed that the song finishes before the song position reaches the length variable.
#36
Posted 13 November 2005 - 08:27 AM
Oh, and is it legal to use this in commercial game?
#37
Posted 13 November 2005 - 10:52 AM
You don't need to use the logo as you long put a notice in the credits.This is very good and I will use it in my current game. Would you like to have your logo or something in the splash screen/intro?
Use it for whatever you want to.Oh, and is it legal to use this in commercial game?
#38
Posted 14 November 2005 - 03:25 PM
http://forums.gamema...howtopic=170497
By the way, this dll was used in the winning entry of the ninja-robot-pirate-something else game competition on gamedev!
#39
Posted 18 November 2005 - 10:02 PM
How would i go about making it detect that the sound has finished and start a diffrent song playing...or is this not possable?
Many thanks
Great DLL
Terry
Then as I read your next post:
I tried that and it didn't work. As the first song ends it does not play the other song, it does nothing.First, play the sound (do not loop it). Then, in the step event of an object, you can check if it's still playing with SS_IsSoundPlaying(sound_handle).
if SS_IsSoundPlaying(sound) then begin
SS_PlaySound(othersound);
end;
This is the current script I'm using: Game Start>Script:
{
{
global.handle = SS_LoadSound("Blink - 182.ogg")
SS_PlaySound(global.handle)
SS_FreeSound(global.handle)
}
if SS_IsSoundPlaying("Blink - 182.ogg") = 0
then begin
{
global.handle = SS_LoadSound("Blink-182 ATST.ogg")
SS_PlaySound("Blink-182 ATST.ogg")
SS_FreeSound(global.handle);
}
end;
}Could you please help me? Thank you.
#40
Posted 19 November 2005 - 10:45 AM
A: Put the playing and loading code in the game start event of an object and never use the function game_restart() or the corresponding action (is there one?). Instead go to the first room to restart the game. Of course, this might require some restructuring of your game, but that's good programming style anyways.
Q: How do I make a playlist-like program so that when one sound stops another one starts?
A: Here's an example, put this in the game start event and never use game_restart():
SS_Init();
ssh_firstsound = SS_LoadSound("Anime Bowling Babes.ogg");
ssh_secondsound = SS_LoadSound("Tony Christie ft Peter Kay - Amarillo.ogg");
ssh_thirdsound = SS_LoadSound("hark.ogg");
playlist[0] = ssh_firstsound;
playlist[1] = ssh_secondsound;
playlist[2] = ssh_thirdsound;
playlist_current = 0;
playlist_max = 3;
SS_PlaySound(playlist[0]);
alarm[0] = 10;And, put this in alarm 0:alarm[0] = 10; if SS_IsSoundPlaying(playlist[playlist_current]) = false then begin playlist_current += 1; if playlist_current = playlist_max then begin playlist_current = 0; end; SS_PlaySound(playlist[playlist_current]); end
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users









