Re: How to Play Sound and Video Files June 21, 2009 04:27AM | Registered: 14 years ago Posts: 10 |
Re: How to Play Sound and Video Files June 23, 2009 04:36AM | Registered: 15 years ago Posts: 97 |
Re: How to Play Sound and Video Files June 24, 2009 04:37AM | Registered: 14 years ago Posts: 3 |
Re: How to Play Sound and Video Files June 24, 2009 06:25AM | Registered: 15 years ago Posts: 97 |
Quote
ulti
@Nicholas_Roge:
As jsmaster said, "GX" refers to the graphics library. The functions that start with GX_ control the 3d hardware and let you do things like display polygons. Normally this is what you want to use when you're making a game because the 3d hardware is specifically designed to do these kind of things, and is very fast.
However, that's not the only way to get things to show up on screen. The way display works on the Wii, you have a block of memory called your "framebuffer" that represents what actually gets displayed. GX works by taking in abstract constructs like polygons, figuring out how to draw them, then drawing the result to the framebuffer. You're also allowed to write directly to the framebuffer (it's just ordinary memory after all). This is slower because you don't get the benefit of hardware acceleration and more complicated because the pixels are stored in a funny format, but for certain types of applications it's a valid option. Video is one of them, mainly because it doesn't benefit at all from the 3d hardware but also because you're already working with the image on a pixel-by-pixel basis so the conversion to the funny format isn't as big a drawback.
If you just want to display a very simple video then the easiest way to show it might be to just store each frame as a texture and quickly cycle through them. It won't be compressed and you can't just load an .avi file and expect it to work, but it's the easiest option using the available tools. You would want to use GX for that.
Re: How to Play Sound and Video Files June 25, 2009 06:46PM | Registered: 14 years ago Posts: 3 |
Re: How to Play Sound and Video Files June 25, 2009 11:45PM | Registered: 14 years ago Posts: 10 |
Re: How to Play Sound and Video Files June 26, 2009 02:06AM | Registered: 15 years ago Posts: 703 |
Quote
Nicholas_Roge
No, no. By no means do I want a simple fix. I plan on majoring in Computer Science, so as much knowledge before hand would be nice. And I'm gonna take a look at mplayer's source. That still doesn't fix my previous problem with the sound though.