Jump to content


Photo

Saudio Extension


  • This topic is locked This topic is locked
25 replies to this topic

#1 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 25 May 2007 - 04:50 PM

Here is an extension I made so you wouldnt always have to have that annoying dll or vast amount of scripts in your game when using Saudio.

You can download it here.
Saudio extension

To see the original DLL go here.
Saudio DLL

And if you use the saud_seek function make sure to put the position in quotes too otherwise you'll get an unexpected error.


Gex link is down (dll version is still working though). Contact me if the link works again. ~ paul23

Edited by paul23, 20 December 2011 - 09:48 AM.

  • 0

#2 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 27 May 2007 - 02:10 AM

Ok this is the final version. It has a library now!
  • 0

#3 zbynek

zbynek

    GMC Member

  • New Member
  • 7 posts

Posted 03 June 2007 - 09:06 PM

Ok this is the final version. It has a library now!

<{POST_SNAPBACK}>

Do you can make sound title, sound author etc. pls? Or do you know other extension package with these functions? Thanx

//Sorry for my english, I am czech :)
  • 0

#4 aeharding

aeharding

    GMC Member

  • New Member
  • 462 posts

Posted 04 June 2007 - 06:23 AM

Mind posting example?
  • 0

#5 zbynek

zbynek

    GMC Member

  • New Member
  • 7 posts

Posted 04 June 2007 - 05:21 PM

Mind posting example?

<{POST_SNAPBACK}>

No, only get function, e.g. detection CD name or author mp3 etc...
  • 0

#6 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 04 June 2007 - 10:15 PM

well to work it you load the file to an id (in quotes if u do it in code) and then you can play stop or record the sound. And if u use saud_seek you must put the seeking number in quotes.


-----Example to load, and play a sound and seek to 50 seconds-----


saud_load("C:\sound.mp3","snd")
saud_play("snd")
saud_seek("50000","snd") (the number is in milliseconds. In the d&d action it is in seconds.)
  • 0

#7 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 04 June 2007 - 10:17 PM

Ok this is the final version. It has a library now!

<{POST_SNAPBACK}>

Do you can make sound title, sound author etc. pls? Or do you know other extension package with these functions? Thanx

//Sorry for my english, I am czech ::lmao::

<{POST_SNAPBACK}>



If u mean ID3 support.... thats a good idea. I might add that.
  • 0

#8 Harryboy

Harryboy

    GMC Member

  • New Member
  • 117 posts

Posted 05 June 2007 - 12:16 AM

WTF? A GEX format? I can't use a GEX file, please change it to zip,please! :P
  • -1

#9 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 05 June 2007 - 12:20 AM

WTF? A GEX format? I can't use a GEX file, please change it to zip,please! :P

<{POST_SNAPBACK}>


I'm not sure if you've caught up with the new gm7 features, but gex is the file extension for a Gamemaker EXtension.
  • 1

#10 jobro

jobro

    GMC Member

  • GMC Member
  • 1300 posts
  • Version:GM:Studio

Posted 08 June 2007 - 02:32 PM

Say can one play files such as IT, XM, S3M or MOD with this beuaty? Could really come handy if it does.
  • 0

Marketplace.png


#11 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 08 June 2007 - 02:42 PM

Yeah it would come in handy but I dont upgrade the dll. Ask andrewmc about that since he made it then maybe I'll make a new extension.
  • 0

#12 zan777

zan777

    GMC Member

  • New Member
  • 396 posts

Posted 02 July 2007 - 12:01 AM

do u mind posting the lib sepretly so gm6 users can see?
  • 0

#13 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 02 July 2007 - 12:28 AM

Well, you would have to include the DLL in the game folder if you just use the lib, but sure let me post it. (Tell me when you download it so I can delete it off my box.)

Ok here you go.
http://www.box.net/shared/zyqqms3ad8

The DLL can be downloaded here.
http://gmc.yoyogames...howtopic=153450

Edited by the_doominator, 02 July 2007 - 12:31 AM.

  • 0

#14 armigus

armigus

    GMC Member

  • New Member
  • 94 posts

Posted 30 November 2007 - 08:31 PM

Your load function depends on a previously existing id--it should create (and return) one as GM's sound_add does.

Edited by armigus, 30 November 2007 - 08:34 PM.

  • 0

#15 armigus

armigus

    GMC Member

  • New Member
  • 94 posts

Posted 02 December 2007 - 09:40 AM

Ha, ha, I had been looking for the id *number* via execute_string("return "+name) when you wanted the id *name* string itself.

I had been knocking my head against this for too long. ;)

If the load function created and returned a dynamic id then it would indeed be a number and the other functions would have to be changed to use that number. I still think it's worth it, though.

Does the Saudio dll still need to be initialized? I saw no GEX function that did so.

Edited by armigus, 02 December 2007 - 10:36 AM.

  • 0

#16 armigus

armigus

    GMC Member

  • New Member
  • 94 posts

Posted 03 December 2007 - 09:34 AM

Update: I ran a test harness program to isolate the GEX and it checks out. It even used the same initialization script that the main game did.

I found what appears to be the problem. saud_seek(0,id) somehow wreaks havoc with playback. You were expecting a string, as always. *sigh* :angry:
  • 0

#17 Glasser

Glasser

    GMC Member

  • New Member
  • 51 posts

Posted 29 December 2007 - 08:52 PM

HEY! It is not working! Game Maker 7 doesn´t read the *.gex files and the LIB doesn´t work! :wacko:
  • 0

#18 Joerdgs

Joerdgs

    Clavus Studios

  • New Member
  • 393 posts

Posted 30 December 2007 - 10:35 AM

HEY! It is not working! Game Maker 7 doesn´t read the *.gex files and the LIB doesn´t work!  :GM069:

<{POST_SNAPBACK}>

Read before you start yelling nonsense:
http://gmc.yoyogames...howtopic=280300
  • 0

#19 armigus

armigus

    GMC Member

  • New Member
  • 94 posts

Posted 29 July 2008 - 02:32 AM

Box.net rejects all attempts at download. Please make the file available elsewhere.
  • 0

#20 armigus

armigus

    GMC Member

  • New Member
  • 94 posts

Posted 21 August 2008 - 06:33 PM

I got it this time. Perhaps it was a cookie issue with Box.net.
  • 0

#21 newber_dan

newber_dan

    GMC Member

  • New Member
  • 85 posts

Posted 02 November 2008 - 01:00 PM

THANK YOU!! this is exactly what i was looking for, for my new frets on fire song editor! :)
  • 0

#22 Mocgames998

Mocgames998

    GMC Member

  • GMC Member
  • 118 posts

Posted 13 December 2008 - 04:36 PM

I hate getting unexpected errors.
  • 0

???

It looks like I can finally put something here, before the GMC goes down:

Spoiler

#23 RedHunterNo40

RedHunterNo40

    GMC Member

  • New Member
  • 53 posts

Posted 04 January 2009 - 08:26 AM

Does saud_seek("pos","id") work at all? I wanted to test this out by scrapping together a player where I could use + and - to adjust position by whole seconds while paused and resume at the new position via seek. I figured out after time that saud takes strings, but is this also the case for seek? If not, which arguments are what type? I keep getting an error about real() or freezing up.

I'm really interested in getting this to work for a rhythm game step editor. I'm new at high resolution timing, so any enlightenment ex. "there's a better way to do it" would be greatly appreciated.
Thanks in advance.
  • 0

#24 julien7777

julien7777

    GMC Member

  • New Member
  • 12 posts

Posted 15 August 2009 - 04:23 AM

Can you use this in commercial games?
  • 0

#25 eejin

eejin

    GMC Member

  • GMC Member
  • 82 posts
  • Version:GM8

Posted 12 February 2011 - 02:31 PM

Does anybody have this gex becouse the link is death.
  • 0

#26 TheSoundofGrafix

TheSoundofGrafix

    GMC Member

  • GMC Member
  • 13 posts

Posted 13 August 2011 - 08:55 PM

is there an extension for removing the lag in sound? Any1? I found the GMFMOD dll but idk how to use it...
  • 0