Jump to content


Photo

[request] Ogg Dll


  • Please log in to reply
15 replies to this topic

#1 toenail

toenail

    Mindtrick Forefront

  • New Member
  • 851 posts

Posted 03 April 2007 - 09:39 AM

Hey!!

I know there are many DLL's around which can play OGG and do nice pretty features but I would like someone to make me a DLL which is just the OGG playing function, nothing more, nothing less :)

There needs to be only 3 functions, DLL INIT, OGG PLAY and DLL FREE. The OGG PLAY script would only need two ARGUMENTS, THE SOUND TO PLAY and WHETHER TO LOOP OR NOT (1 for loop and 0 for not)

We are willing to give credit but the author must be fine if we are to sell the game. We will by all means put credit in the game and you may put some sort of copyright or whatnot on the DLL and your name, we can't stop you doing that.

Would anyone be interested?

Thank you
~toenail

Edited by toenail, 03 April 2007 - 09:40 AM.

  • 0

#2 tdmgames

tdmgames

    GMC Member

  • New Member
  • 1641 posts

Posted 03 April 2007 - 09:41 AM

y cant you just use another 1?
  • 0

#3 toenail

toenail

    Mindtrick Forefront

  • New Member
  • 851 posts

Posted 03 April 2007 - 09:47 AM

y cant you just use another 1?

<{POST_SNAPBACK}>

Because I would like a custom one made for the game :)

Obviousely if no one is willing to help me then I will have to use another but I just thought it would be nice if someone was bored and maybe could help me out a little ;)

Thanks
~toenail
  • 0

#4 tdmgames

tdmgames

    GMC Member

  • New Member
  • 1641 posts

Posted 03 April 2007 - 10:09 AM

hmm... well i've never made a DLL before but it would be quite cool if i could try now!
  • 0

#5 toenail

toenail

    Mindtrick Forefront

  • New Member
  • 851 posts

Posted 03 April 2007 - 10:15 AM

hmm... well i've never made a DLL before but it would be quite cool if i could try now!

<{POST_SNAPBACK}>

Aye ;)

And you would get credit in the game :)

Are you willing to make it for credit and recognition only?

~toenail
  • 0

#6 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 03 April 2007 - 10:22 AM

I'll give it a shot.... PM me now
  • 0

#7 PLAY: More

PLAY: More

    Press F8 to enter BIOS

  • New Member
  • 824 posts

Posted 03 April 2007 - 10:35 AM

Can't you just use these scripts?
Play
/*
ogg_play(fname)
Plays an OGG file and returns an ID to use in other scripts.
*/
var i;
i := random(game_id);
MCI_command("open "+string(argument0)+" type mpegvideo alias "+string(i));
MCI_command("play "+string(i));
Stop
/*
ogg_stop(id)
Stops an OGG file.
*/
MCI_command("stop "+string(argument0));
MCI_command("close "+string(argument0));

Edited by PLAY: More, 03 April 2007 - 10:36 AM.

  • 0

#8 toenail

toenail

    Mindtrick Forefront

  • New Member
  • 851 posts

Posted 03 April 2007 - 10:39 AM

Can't you just use these scripts?
Play

/*
ogg_play(fname)
Plays an OGG file and returns an ID to use in other scripts.
*/
var i;
i := random(game_id);
MCI_command("open "+string(argument0)+" type mpegvideo alias "+string(i));
MCI_command("play "+string(i));
Stop
/*
ogg_stop(id)
Stops an OGG file.
*/
MCI_command("stop "+string(argument0));
MCI_command("close "+string(argument0));

<{POST_SNAPBACK}>

Nope because GM cannot play OGG's on it own :)

~toenail
  • 0

#9 PLAY: More

PLAY: More

    Press F8 to enter BIOS

  • New Member
  • 824 posts

Posted 03 April 2007 - 10:52 AM

Can't you just use these scripts?
Play

/*
ogg_play(fname)
Plays an OGG file and returns an ID to use in other scripts.
*/
var i;
i := random(game_id);
MCI_command("open "+string(argument0)+" type mpegvideo alias "+string(i));
MCI_command("play "+string(i));
Stop
/*
ogg_stop(id)
Stops an OGG file.
*/
MCI_command("stop "+string(argument0));
MCI_command("close "+string(argument0));

<{POST_SNAPBACK}>

Nope because GM cannot play OGG's on it own :)

~toenail

<{POST_SNAPBACK}>

Don't MCI commands work?
  • 0

#10 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 03 April 2007 - 12:38 PM

toenail you should try that
  • 0

#11 1up Graphix

1up Graphix

    GMC Member

  • New Member
  • 171 posts

Posted 04 April 2007 - 12:51 AM

Well, wouldn't you have to have the codecs for that to work? Not everyone has ogg codecs. I may be completely wrong though. :blink:
  • 0

#12 hpapillon

hpapillon

    GMC Member

  • Retired Staff
  • 3019 posts
  • Version:Unknown

Posted 04 April 2007 - 01:11 AM

The question then should be - can you get a good error back if it doesn't work in order to direct the player to download the codecs?

That code does work well enough on my machine to play oggs, but I have ogg stuff installed somewhere.
  • 0

#13 1up Graphix

1up Graphix

    GMC Member

  • New Member
  • 171 posts

Posted 04 April 2007 - 01:55 AM

I couldn't get it to work on mine.
  • 0

#14 hpapillon

hpapillon

    GMC Member

  • Retired Staff
  • 3019 posts
  • Version:Unknown

Posted 04 April 2007 - 02:00 AM

Oh good, that makes you a helpful guinea pig! What did it do? Error messages or just no sound?

Make a GM file and save it. Copy an ogg file into the same directory as that GM file and name it test.ogg then add the ogg_play script as a script to the gm game. now in an object code somewhere do

ogg_play("test.ogg");

and report what happens. Then:

Download http://www.illiminab...s_0.71.0946.exe and run it.

Now do the test again. Does this make the sound work?
  • 0

#15 toenail

toenail

    Mindtrick Forefront

  • New Member
  • 851 posts

Posted 04 April 2007 - 11:16 AM

So people would have to have an OGG Codec installed to play the files using an MCI String?

One of the reasons why I wanted a DLL was because people would not need the codecs installed and it would make it more user friendly :skull:

Anyone willing?
~toenail
  • 0

#16 Smarty

Smarty

    GMC Member

  • Retired Staff
  • 7462 posts
  • Version:GM:Studio

Posted 04 April 2007 - 11:26 AM

Toenail, I don't see the point in making a custom one just for your game. There are OGG playing DLLs out there already, all you need to do is read yourself into how they should be used, as opposed to telling others how you want it used.

If you don't need the extra functionality, then don't use it... It's not as if it will save you a lot of space on the distribution anyway.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users