Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Cabrio: New front end for cabinets  (Read 10970 times)

0 Members and 1 Guest are viewing this topic.

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Cabrio: New front end for cabinets
« on: October 20, 2009, 04:08:03 am »
While thinking about my soon-to-be-built arcade cabinet, I started looking at front ends. As I couldn't find one that fitted my needs, I figured I'd roll my own. I wanted it to be completely graphical and have a simple interface that was easy to use with a joystick. Here's what it looks like just now (click for bigger images):

 

The top part is a simple menu from which you can select all games or filter based on genre or platform. More filters are easily added in code although I hope to make this configurable soon. After you've chosen a filter, the main part of the screen is used to display logos (or marquees, or other images, if you like) of the games which you can "flip" through in a groovy, animated kind of way, a bit like flipping through songs on an iPod. You can also specify a background image (e.g. a screen shot) for each game.

Just now it runs on Linux, as that's what I'll be running my cabinet on. It's written in straight C using OpenGL and SDL, so it shouldn't be hard to get it working on other *NIX systems or even Windows with a little work. If you want to try it out, the sources are here but be warned: it's still a bit rough around the edges! Feel free to ask any questions if you have trouble setting it up.
Cabrio FE - a free open source front end for arcade cabinets.

Cakemeister

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1002
  • Last login:May 31, 2024, 06:23:16 pm
  • I'm a llama!
Re: Cabrio: New front end for cabinets
« Reply #1 on: October 20, 2009, 11:23:36 am »
Hello,

Please don't use fork() to launch your emulators. Use some kind of cross-platform thread library, such as Posix Threads.

http://en.wikipedia.org/wiki/POSIX_Threads

Also, what version of SDL are you using?



Old, but not obsolete.

gonzo90017

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:June 23, 2019, 02:41:07 pm
  • I'm a llama!
Re: Cabrio: New front end for cabinets
« Reply #2 on: October 20, 2009, 12:34:55 pm »
Looks pretty cool.

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Cabrio: New front end for cabinets
« Reply #3 on: October 20, 2009, 02:59:17 pm »
nice to see a Linux based frontend, there is not many of them.
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #4 on: October 20, 2009, 03:26:16 pm »
Please don't use fork() to launch your emulators. Use some kind of cross-platform thread library, such as Posix Threads.
Yes, that's one of the rough edges I was on about...

Also, what version of SDL are you using?
Just what was installed on my Linux box at the time:
libsdl-gfx1.2-4 2.0.13-3
libsdl-image1.2 1.2.6-3
libsdl-mixer1.2 1.2.8-1ubuntu0.1
libsdl-net1.2 1.2.7-2
libsdl-sound1.2 1.0.1-12build2
libsdl-ttf2.0-0 2.0.9-1
libsdl1.2debian 1.2.13-1ubuntu1
libsdl1.2debian-alsa 1.2.13-1ubuntu1
Cabrio FE - a free open source front end for arcade cabinets.

Cakemeister

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1002
  • Last login:May 31, 2024, 06:23:16 pm
  • I'm a llama!
Re: Cabrio: New front end for cabinets
« Reply #5 on: October 20, 2009, 04:17:11 pm »
I got it partially working on Windows.

There's a segfault that needs fixing:

Code: [Select]
       if( emulator!=NULL ) {
int i;
struct config_param *prev_param = NULL;
const int num_params = 4;
const char *params[] = { "-nowindow", "-skip_gameinfo", "-switchres", "-joystick" };
            struct config_param *param;

emulator->id = 0;
strncpy( emulator->name, "mame", CONFIG_NAME_LENGTH );
strncpy( emulator->display_name, "MAME", CONFIG_NAME_LENGTH );
strncpy( emulator->executable, "mame", CONFIG_FILE_NAME_LENGTH );
strncpy( emulator->display_name, "MAME", CONFIG_NAME_LENGTH );
            emulator->params=NULL;
            emulator->next=NULL; // <------- Add this
for( i = num_params-1 ; i >= 0 ; i-- )
            {
                param = malloc( sizeof(struct config_emulator) );
                if( param!=NULL ) {
strncpy( param->name, params[i], CONFIG_PARAM_LENGTH );


Therer are a couple of other segfaults that happen when the game list is empty.

I'm not sure how to generate game lists.
« Last Edit: October 20, 2009, 04:28:49 pm by Cakemeister »
Old, but not obsolete.

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #6 on: October 20, 2009, 05:32:48 pm »
Nice work getting it running on Windows already. I'm afraid at the moment there's no direct way of generating a game list, I've just been adding them manually (there's an example in the README). Definitely a feature I'd like to add soon, before I get sick of typing them all in by hand ;-)

And yes, I saw a segfault when the list was empty too; it's fixed but not in the snapshot I posted. Didn't catch the one you found in config.c, but that fix is in there now too - thanks.
« Last Edit: October 20, 2009, 05:35:33 pm by cosam »
Cabrio FE - a free open source front end for arcade cabinets.

Cakemeister

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1002
  • Last login:May 31, 2024, 06:23:16 pm
  • I'm a llama!
Re: Cabrio: New front end for cabinets
« Reply #7 on: October 20, 2009, 07:35:00 pm »
I think NOP will want to write something to generate the game list for you. See ROMLister.

I generated a preliminary game list with my Listgen utility, we'll see how it works. I'm a programmer, not a typist! :)

Old, but not obsolete.

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #8 on: October 21, 2009, 05:06:05 am »
I think NOP will want to write something to generate the game list for you. See ROMLister.
If that's who I think it is, he's probably far too busy messing around with IDE controllers for ancient PCs ;-)

I'm thinking of adding some kind of basic, built-in setup utility. Not just for the game list, but I really need something for setting up the controls (some kind of "now press left", "now press right", etc. affair). Whatever I make it's going to be pretty simple, just enough to get you going. It would of course be cool if more advanced users could use the extra features of ROMLister.
Cabrio FE - a free open source front end for arcade cabinets.

Cakemeister

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1002
  • Last login:May 31, 2024, 06:23:16 pm
  • I'm a llama!
Re: Cabrio: New front end for cabinets
« Reply #9 on: October 21, 2009, 09:34:02 am »
Okay, I wrote a list generator. The FE works pretty well. The scrolling is smooth and framerates are good. You can use marquee images or else get the wheel images from Hyperspin and use those.

Your code is very clean and easy to read.  It was very easy to port to Windows. :burgerking:

A couple of suggestions:

1) Move the game list out of the main configuration file. If you want a single game list, add a "<gamelist>gamelist.txt</gamelist>" entry after the emulators, or maybe have a per-emulator game list tag within the emulator tag.

2) Don't have an application header file have the same name as a library header file. (SDL.h) Yes, the compiler should resolve it correctly, but some compilers don't.

3) I had some problems with the empty config file generation, and with the data directory. If you want to make the application more portable, you might look at those.

4) SDL is quirky when it comes to the main() function. To get it to run on Windows, I changed your main() to main_app(). Then I added a separate main() function in a different source file that does not include <SDL.h>, that calls the main_app().
Old, but not obsolete.

youki

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1612
  • Last login:November 19, 2016, 01:07:33 pm
  • Atomic Front End Creator
    • Atomic Front End
Re: Cabrio: New front end for cabinets
« Reply #10 on: October 21, 2009, 10:16:21 am »
Is it possible to see a video of that FE?  It looks very interresting.

I don't have time to try it. :(


cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #11 on: October 21, 2009, 10:25:08 am »
Many thanks for the comments and suggestions, and of course your effort to get this going on Windows.

I'm still trying to figure out how I'd like the configuration to work. Originally I was thinking that each game would have a "platform" tag, as would the emulators. When firing up, it'd look for the emulator for the particular platform and run it. Your suggestion of doing it essentially the other way around also has it's merits - I'll think it over.

I figured the file handling stuff would be problematic when it came to porting. I was planning to lump it all together in one file to make things easier, eventually - I wasn't expecting anyone to dive straight into a Windows port ;-)

As you've probably noticed, images with transparency are pretty effective. The Hyperspin wheel images are indeed ideal. I also traced a bunch of logos into SVG images and exported them as PNGs. I'll see about making them available, probably via the Arcade Art site, but it doesn't seem to be working right now.
Cabrio FE - a free open source front end for arcade cabinets.

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #12 on: October 21, 2009, 10:31:38 am »
Is it possible to see a video of that FE?  It looks very interresting.
I've been looking into making a video. I wanted to record what was on my screen, but haven't found a good Linux program for that just yet. If need be, I'll clear up the desk and just shoot one "live" off the monitor later this week.
Cabrio FE - a free open source front end for arcade cabinets.

Ummon

  • Trade Count: (+13)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5244
  • Last login:June 09, 2010, 06:37:18 pm
Re: Cabrio: New front end for cabinets
« Reply #13 on: October 23, 2009, 02:54:17 pm »
Some groovy, and perhaps eventually necessary, features to consider:

- making game lists from the MAME32/UI folders ini

- screen saver options (if there aren't already)

- U360 support

- start and exit app options (I don't use this, but I think a lot of people do)
Yo. Chocolate.


"Theoretical physics has been the most successful and cost-effective in all of science."

Stephen Hawking


People often confuse expressed observations with complaint, ridicule, or - even worse - self-pity.

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #14 on: October 23, 2009, 07:36:14 pm »
I've added some stuff this evening to handle custom controls, so you can use pretty much anything SDL can catch events from. That means the keyboard, joysticks (analogue and digital), mice and trackballs are all fair game. You can set a key/button/whatever to exit the app. The only thing is that there's not yet an easy way to figure out what you need to put in the config file for anything but keyboard controls. That should be fixed soon when I get the setup utility working. I also fixed a bunch of segfaults which crop up when you have an empty game list, although I guess a message along the lines of "no games found" would be more friendly.

Instead of popping out snapshots of every little change, I've check the whole lot into my Subversion repository: http://sources.cosam.org/svn/cabrio/
Cabrio FE - a free open source front end for arcade cabinets.

ryantheleach

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 94
  • Last login:October 17, 2013, 01:44:17 pm
  • I'm a llama!
    • My Personal Blog
Re: Cabrio: New front end for cabinets
« Reply #15 on: October 24, 2009, 06:58:54 pm »
No, if I were you I'd keep your platform idea, that way it gives the flexibility of being able to pick an emulator if there is more then one for that platform!

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #16 on: October 24, 2009, 07:37:03 pm »
I've made a short demo video of this front end in action - not the best quality, but you get the idea. As well as flipping one game at a time, the video shows skipping to games beginning with the next/previous letter. The FE was being controlled using a wireless joypad, so that's all working now too.

Cabrio FE - a free open source front end for arcade cabinets.

IG-88

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2042
  • Last login:June 24, 2025, 05:56:01 pm
  • Posts: 48,764
Re: Cabrio: New front end for cabinets
« Reply #17 on: October 24, 2009, 07:46:08 pm »
So where do we download this puppy at?
"I know what a HAL 9000 is... I was wondering if HAL 7600 was his retarded cousin or something..."
-HarumaN

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #18 on: October 24, 2009, 07:58:54 pm »
So where do we download this puppy at?
Your best bet at the moment is to pull ito out of Subversion at the URL above. I've uploaded a new snapshot of the sources here too.

I'm afraid there are no binary/executable releases available yet (unless you happen to be running on an AMD64 Linux box). I'm sure this will change when things settle down - it's still very much in development right now.
Cabrio FE - a free open source front end for arcade cabinets.

IG-88

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2042
  • Last login:June 24, 2025, 05:56:01 pm
  • Posts: 48,764
Re: Cabrio: New front end for cabinets
« Reply #19 on: October 24, 2009, 08:00:27 pm »
Thats cool, I can wait. Just looks sweet and had a new cab I wanted to try it in.  :cheers:
"I know what a HAL 9000 is... I was wondering if HAL 7600 was his retarded cousin or something..."
-HarumaN

Ummon

  • Trade Count: (+13)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5244
  • Last login:June 09, 2010, 06:37:18 pm
Re: Cabrio: New front end for cabinets
« Reply #20 on: October 26, 2009, 03:43:31 pm »
Looks pretty nifty. That background reminds me of The Jetsons from the 60s. Not against it, though I would probly change it. I don't know as I'd keep the 'function' sounds, either, but I think they're about the most 'innocuous' of all I've heard on FEs.
Yo. Chocolate.


"Theoretical physics has been the most successful and cost-effective in all of science."

Stephen Hawking


People often confuse expressed observations with complaint, ridicule, or - even worse - self-pity.

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #21 on: October 26, 2009, 05:53:50 pm »
That background reminds me of The Jetsons from the 60s. Not against it, though I would probly change it. I don't know as I'd keep the 'function' sounds, either, but I think they're about the most 'innocuous' of all I've heard on FEs.
Yeah, that will all be configurable eventually. Right now, everything is loaded from regular files (PNG, JPG, WAV) which are easily replaced until I get the options added to the config file.

I've put together a simple web site at http://www.cabrio-fe.org/ with downloads, screenshots and some basic documentation.
Cabrio FE - a free open source front end for arcade cabinets.

Ummon

  • Trade Count: (+13)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5244
  • Last login:June 09, 2010, 06:37:18 pm
Re: Cabrio: New front end for cabinets
« Reply #22 on: October 28, 2009, 05:01:33 pm »
Nice. You're very expeditious.
Yo. Chocolate.


"Theoretical physics has been the most successful and cost-effective in all of science."

Stephen Hawking


People often confuse expressed observations with complaint, ridicule, or - even worse - self-pity.

youki

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1612
  • Last login:November 19, 2016, 01:07:33 pm
  • Atomic Front End Creator
    • Atomic Front End
Re: Cabrio: New front end for cabinets
« Reply #23 on: October 28, 2009, 05:14:44 pm »
Very Nice! I love the style!   :applaud:  :applaud:

Thanks for the video!


Lilwolf

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4945
  • Last login:July 31, 2022, 10:26:34 pm
Re: Cabrio: New front end for cabinets
« Reply #24 on: October 29, 2009, 06:37:13 am »
so, have you tried to compile with cygwin?  I would love to see this on the PC.

I love all the animated FE';s these days.  I wrote one years ago, but the graphics wheren't behind it... and it was written in java (that some didn't like)... and the biggest problem...  The opengl wrapper I was using sucked on ATI video cards (which I have in my cabinet) but worked GREAT on nvidia cards (my development system).  Guess how far I went before testing it on my arcade machine, and how pissed I was :)...

But I love the style.  And are you taking suggestions?

I could see a button press or something to switch from marquee / wheel to screenshots.  Even if its just for the current game.  Now that there are wheel graphics for ever game in mame, I can see people with items on the list that they don't actually know... from the wheel graphics.


Good luck

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #25 on: October 29, 2009, 09:59:31 am »
so, have you tried to compile with cygwin?  I would love to see this on the PC.
I hope to be able to integrate Cakemeister's changes into the main source tree, so we should have a Windows build before too long.

But I love the style.  And are you taking suggestions?

I could see a button press or something to switch from marquee / wheel to screenshots.  Even if its just for the current game.  Now that there are wheel graphics for ever game in mame, I can see people with items on the list that they don't actually know... from the wheel graphics.
It would be nice to integrate screenshots some how. At the moment you can set a background for each game, which could just as well be a screenshot. I am however currently fleshing out the configuration options with stuff to allow you to define what the interface looks like, right down to the position of individual game "tiles" in which the logos are displayed. I could easily add an extra option to determine if/where a screenshot should be shown and under what conditions (e.g. button press, after a fixed delay, etc.). That should be pretty easy to implement - the trick is getting the arrows and button icons to show up in the right place. I also want to support screen rotation, so with all that taken into account, it starts getting more complicated ;-)
Cabrio FE - a free open source front end for arcade cabinets.

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #26 on: October 30, 2009, 08:55:09 pm »
Just to bring those interested up to speed: I've uploaded a new version here.

This version supports screen rotation, which will be dynamic as soon as I get it worked into the interface. It also does horizontal/vertical flipping, in case you happen to have a mirror between you and your monitor. There are also extra options to configure the background image, rotation (and speed) and transparency.

The big change, however, is more flexible filtering based on categories. You simply specify a category for a game, and it's automatically available as a filter. For example, you can specify a "Genre" category, and a menu button will appear allowing you to filter on all unique genres entered for all games. Adding other categories (manufacturer, control types, orientation, your own rating system or whatever else you can think of) is just a matter of adding a couple of lines to the configuration under the appropriate games.

The site has been updated to reflect these changes, and now includes much better documentation on the configuration options.
Cabrio FE - a free open source front end for arcade cabinets.

abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1624
  • Last login:Yesterday at 04:27:58 pm
Re: Cabrio: New front end for cabinets
« Reply #27 on: November 02, 2009, 02:51:38 pm »
Nice looking FE, similar to the ultracade rotating weel, since its open source, maybe it can be compiled to run in its own OS no windows or full linux necesarie, i wich i new how to do that.... good luck with your project  :cheers:

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #28 on: November 03, 2009, 06:05:48 pm »
As of a few minutes ago, version 0.5.0 is available. For the Windows guys, there's a rough Win32 build up there too, including (hopefully) all the DLLs required to run. Be aware that it isn't as robust as it should be. I've tested this on a couple of machines and got it working, but it may trip up if it comes across anything "unexpected" in the configuration. One extra tip: you may need to use quotes around paths with spaces in them. There are also some graphics issues that need fixing, and sound may not work for you - although given the current compliment of noises, you may be thankful for that ;-) Please do let me know how you get along.

Here's the link: http://www.cabrio-fe.org/download/

This release includes a few extra configuration options, some of which as as yet undocumented. Still no built-in game list generation I'm afraid, but I've been in touch with NOP and there are plans to add the format to ROMLister soon! In the mean time, check this page for details.
Cabrio FE - a free open source front end for arcade cabinets.

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #29 on: November 03, 2009, 06:20:39 pm »
Nice looking FE, similar to the ultracade rotating weel, since its open source, maybe it can be compiled to run in its own OS no windows or full linux necesarie, i wich i new how to do that.... good luck with your project  :cheers:
Thanks! I hope to get started on the skinning/theming stuff soon, so there'll be plenty of flexibility to get it looking just how you want it to.

I don't know about running with no OS at all, but you could get by with a pretty minimal Linux distribution. In theory you shouldn't even need to run X-Windows, although I've not tried it on a raw frame buffer as yet.
Cabrio FE - a free open source front end for arcade cabinets.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Cabrio: New front end for cabinets
« Reply #30 on: November 03, 2009, 07:24:59 pm »
Nice to see something unique coming out in the world of front-ends. Nice and simple interface. The only thing missing really is support for avi snaps. Any plans on implementing video support?

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #31 on: November 04, 2009, 04:01:43 am »
The only thing missing really is support for avi snaps. Any plans on implementing video support?
I've been looking into that and it certainly appears possible. Not sure how to do sound yet - in the worst case the audio can be extracted and played separately. I was planning on adding music anyway as SDL_mixer makes this ridiculously easy ;-)
Cabrio FE - a free open source front end for arcade cabinets.

Ummon

  • Trade Count: (+13)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5244
  • Last login:June 09, 2010, 06:37:18 pm
Re: Cabrio: New front end for cabinets
« Reply #32 on: November 05, 2009, 04:03:30 pm »
This is really coming along in a short period of time. Once you get to a certain point, if hasn't been already, this'll have to be added to the wiki. I'm actually a little surprised that people aren't all over this, as there hasn't really been this kind of (at least seemingly to me) 'grass roots' development, of days gone by, in a while.
Yo. Chocolate.


"Theoretical physics has been the most successful and cost-effective in all of science."

Stephen Hawking


People often confuse expressed observations with complaint, ridicule, or - even worse - self-pity.

Cakemeister

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1002
  • Last login:May 31, 2024, 06:23:16 pm
  • I'm a llama!
Re: Cabrio: New front end for cabinets
« Reply #33 on: November 05, 2009, 04:29:58 pm »
You can use libffmpeg for the movies. It will show .avi, .mpg, and .flv. Syncing the audio and video can be a hassle, but there are tutorials out there on how to do it.
Old, but not obsolete.

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #34 on: November 06, 2009, 04:04:59 am »
Once you get to a certain point, if hasn't been already, this'll have to be added to the wiki. I'm actually a little surprised that people aren't all over this, as there hasn't really been this kind of (at least seemingly to me) 'grass roots' development, of days gone by, in a while.
Oh, it's been on the wiki for a while now, although I did need to update the page to bring it in line with the latest developments. Judging by the number of downloads there is probably more interest in the project than first meets the eye. It's still very early days yet though, and it still needs a lot of polishing to make it easier to set up. Anyway, even if no-one else wants it, at least I'll have my ideal FE for my own cab ;-)

You can use libffmpeg for the movies. It will show .avi, .mpg, and .flv. Syncing the audio and video can be a hassle, but there are tutorials out there on how to do it.
Thanks for the tip. I was looking at some code which uses libaviplay, but this seems more flexible.
Cabrio FE - a free open source front end for arcade cabinets.

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #35 on: November 09, 2009, 04:11:40 pm »
Here's a quick teaser of the "skin" I'm playing with right now. I say "skin" as some parts are still hard-coded, but a lot of stuff is already configurable. Eventually everything you see, where is is, which way around and how big will all be up to the user.

Screen shots are in there - you'll just have to imagine they're videos for now ;-) Altered Beast has no screen shot configured, so you get the TV noise effect. I'll get a video of the thing in action put together soon, so you can see the new animation effects.
Cabrio FE - a free open source front end for arcade cabinets.

IG-88

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2042
  • Last login:June 24, 2025, 05:56:01 pm
  • Posts: 48,764
Re: Cabrio: New front end for cabinets
« Reply #36 on: November 09, 2009, 05:41:26 pm »
I know you probably dont know yet but do you have an idea on the hardware specs needed to run it?
"I know what a HAL 9000 is... I was wondering if HAL 7600 was his retarded cousin or something..."
-HarumaN

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #37 on: November 10, 2009, 04:24:26 am »
I know you probably dont know yet but do you have an idea on the hardware specs needed to run it?
I can't give you any exact figures, but it should run reasonably well on modest hardware. The CPU load is lower than I expected and there's not an awful lot of polygons on screen at any one time. What it does use a lot of right now is memory, especially if you have a large game list, as the logo images are loaded at start-up. I'll make that dynamic soon, maybe with a configurable "preload" option so you can trade memory in for speed if you have it. All the major stuff gets freed when a game is launched anyway, so it shouldn't muscle in on the emulator's resources too much.

There are a few parameters you can play with if the hardware can't keep up. Screen resolution, frame rate and image (texture) sizes can all be tweaked and there's a graphics quality setting which can make things easier on your video card if need be.
Cabrio FE - a free open source front end for arcade cabinets.

cosam

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 17, 2012, 05:33:43 am
    • Cabrio FE
Re: Cabrio: New front end for cabinets
« Reply #38 on: November 10, 2009, 04:50:41 pm »
Here's the new video as promised. I captured this straight off my screen using gtk-recordMyDesktop, so it's much better quality than the first attempt.

Enjoy!


Cabrio FE - a free open source front end for arcade cabinets.