Build Your Own Arcade Controls Forum

Main => Audio/Jukebox/MP3 Forum => Topic started by: Space Fractal on January 27, 2007, 06:20:05 pm

Title: CDG Player with zip support (command line) {updated to v4}
Post by: Space Fractal on January 27, 2007, 06:20:05 pm
Why?
Since some have requested a CDG-Player with zip support, I have updated my old previous code to v.2, and adapted to BlitzMax instead of Blitz+.

Download:
http://www.spacefractal.com/files/App/cdgPlayer.zip (http://www.spacefractal.com/files/App/cdgPlayer.zip) (updated at nov 2010)

News:
This version is removed rotation (easy to put back, if I got requests), but I have added support for zip files, since there was 2-3 threads about it in the past.

Command line:
Just feed up with full path to the command line, and it should now start, so you can use any FE. Mamewah is here my highly recommered, but others can been used too.

Included with source:
As you read, the complete source is included, so if you want to compile it to Linux or mac, do that. You may need to use FMod instead of Bass, wich dosent exists to Linux, but should not been very hard, since only few calls is used.

Addition Software:
None extra software is needed, and should work very well on Win 98 and have tested it on Vista RC1 (wich was developed on). Windows Media Player is not used at all, but use bass.dll instead.

Title: Re: CDG Player with zip support released (command line)
Post by: headkaze on January 27, 2007, 08:06:41 pm
That's impressive, you actually decode the cdg file yourself :)

I thought that bass.dll had some built in decoder for it, but it must be for the mp3 file.
Title: Re: CDG Player with zip support released (command line)
Post by: Space Fractal on January 27, 2007, 08:26:27 pm
bass.dll was only used for mp3 playback, since blitzmax "only" support ogg and wav (mp3 was removed due to license). blitzmax exists to Linux and Mac as well. Bass.dll does support these files also.

Decodning CDG was fun, since I found a very good document (http://www.jbum.com/cdg_revealed.html) about it. So this is why it very integreated in Arcade Music Box.

bass.dll could also play from memory as well, so Im was not required to unpack to harddrive first.

Since I have released the source as well, a Blitzmax owner can create a little FE. Im wont do that now, since Im allready have plan it to my next Jukebox application as well. Im wont work on 2 same things, since why it command line only now.
Title: Re: CDG Player with zip support released (command line)
Post by: Dazz on January 27, 2007, 10:46:10 pm
This fits my needs perfectly...  Thank you very much!
Title: Re: CDG Player with zip support released (command line)
Post by: Space Fractal on June 11, 2008, 05:46:39 pm
Some still search for this player. so I pushed this very old thread.

I just updated to version 3 to fix a slowdown bug and possible to use 640x480 as resoultion (if 321x240 or 320x240 diddent found).
Title: Re: CDG Player with zip support (command line) {updated to v3}
Post by: Musicman on June 12, 2008, 06:42:31 pm
Hey Space :
Since you are expert in CDG+mp3
Do you know why WMP CDG plug ins (any available that I know) work but NOT PROPERLY
(i.e. wmp show and play 7:00 instead 3:40) for VBR mp3 only????
for MP3 CBR they work properly.

Thanks for your time.
Title: Re: CDG Player with zip support (command line) {updated to v3}
Post by: Space Fractal on June 13, 2008, 01:15:53 am
I doesn't use WMP with CDG, so no I have no idea. I allways use BASS in my applications.

If you look in this page (Why does WMP show the wrong time for Variable Bitrate (VBR) MP3 files?):
http://zachd.com/pss/pss.html

Your mp3 tags is wrong and need to been fixed by a tagger software to fix your times detected.

It have also nothing to due anything with CDG at all!!!
Title: Re: CDG Player with zip support (command line) {updated to v3}
Post by: Musicman on June 13, 2008, 11:11:03 am
OK
Txs
Title: Re: CDG Player with zip support (command line) {updated to v3}
Post by: mrchrister on October 08, 2010, 01:28:41 pm
Does anyone still have the player? The Link is dead and I can't reach space fractal by pm unfortunately...
Title: Re: CDG Player with zip support (command line) {updated to v3}
Post by: Space Fractal on October 09, 2010, 11:05:03 am
sorry for the very long delay. Link fixed. All my apps is still on spacefractal.com (but if its link on a old domain, this domain then shold work).
Title: Re: CDG Player with zip support (command line) {updated to v3}
Post by: mrchrister on October 10, 2010, 03:22:59 pm
thanks mate!
Title: Re: CDG Player with zip support (command line) {updated to v3}
Post by: mrchrister on October 31, 2010, 09:04:49 am
i just tried out the cdg player it works well! can i change resolution to 1024x576 at 85 hz?
Title: Re: CDG Player with zip support (command line) {updated to v3}
Post by: Space Fractal on November 03, 2010, 08:44:34 am
do yo mean 1024x768? I have not heard at that resoulution.

This app was designed with arcade monitors and ArcadeVGA when I wrote this one for few years ago and was designed with 320x240, 321x240 and 640x480 in mind. CDG is also low resolution graphics (no its not text, its just using graphics tiles) so no need to do higher.
Title: Re: CDG Player with zip support (command line) {updated to v3}
Post by: mrchrister on November 07, 2010, 11:51:13 am
oh sorry i meant 1024x768. i use a 22" crt and its perfect size for most games.
cdgplayerv3 however doesnt display full screen and it flickers at 60 hz (which i can live with)
does it automatically use 640x480 or can i somehow specify which res it should use? i know cdg is graphic tiles it would just be awesome to have it fill the screen!
Title: Re: CDG Player with zip support (command line) {updated to v3}
Post by: Space Fractal on November 13, 2010, 12:00:30 pm
I don't set any Hz, so its should use desktop Hz? But I have not really supported this app for years, but later this week or next week, I do the improvements to do any resolution in the command line or by setting. But I'm are little bit injured (not to been talk here), so I need wait to been fresh again.

But the source code in blitzmax is included, and its really self explained here.

You can also use MultiFE which does not change any resolutions for CDG only part (and also I meant I optimized some cdg commands in some songs that use fading), even its a FE (also started as Jukebox app), its can works with any other frontends out here and can quit by Escape and all.

When done I write here.

Title: Re: CDG Player with zip support (command line) {updated to v3}
Post by: mrchrister on November 14, 2010, 06:27:42 am
awesome! that sounds good space fractal!
i wanna use your program in conjunction with hyperspin. i used to use gameex for karaoke but i'm now using hyperspin and your cdg player is the best choice for such a setup!
concerning hz:
the monitor runs at 100Hz at the moment but when in cdg player it switches down to 60! Thanks for your ongoing support mate! Much appreciated!
Title: Re: CDG Player with zip support (command line) {updated to v4}
Post by: Space Fractal on November 20, 2010, 10:15:01 am
sorry for the very long delay, the app is updated to support any resolution, which you can set in config.ini now.
Title: Re: CDG Player with zip support (command line) {updated to v4}
Post by: mrchrister on November 24, 2010, 07:03:06 pm
YEY! Thanks a lot mate! Here is one happy camper :applaud:

update: i wasn't able to download it from the link.. :(
Title: Re: CDG Player with zip support (command line) {updated to v4}
Post by: Space Fractal on November 25, 2010, 05:05:52 pm
should works now. I forget to update the link itself, not just the text (which was correct, but not when you clicked on it).