OS4 DepotLogo by Alessandro Bacchia 
(anonymous IP:,2202) 

   Bug tracker
   Locale browser


   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (597)
   o Document (22)
   o Driver (97)
   o Emulation (147)
   o Game (1005)
   o Graphics (498)
   o Library (115)
   o Network (232)
   o Office (66)
   o Utility (925)
   o Video (69)

Total files: 4370

Full index file
Recent index file



Support the site

 File comments for:  Development » Example » mpega_demo.lha


Description: Mpega.library demo program for OS4.
Download: mpega_demo.lha
Version: 1.3
Date: 24 Feb 2009
Category: development/example
FileID: 4565
RSS Feed url: http://www.os4depot.net/modules/comments/rssfeed.php?file=development/example/mpega_demo.lha

[Back to readme page]   [Add Comment]   [Refresh page]

Comment by: kas1e ( 12 Mar 2012, 09:43File version: 1.3
Thanks a lot ! Yesterday tryint to find correct mpega includs, and there is your version.

Can you upload it on os4depot as well ? something just like "mpegadev" or kind, so noone anymore will worring about.
Comment by: salass00 ( 11 Mar 2012, 23:53File version: 1.3
Also the libraries/mpega.h include seems to be broken. "#pragma pack(2)" is set near the beginning but it's never set back to the default "#pragma pack()" setting (there is a line near the end containing only "#pragma" though so maybe a typing error). My version doesn't have this problem.
Comment by: salass00 ( 11 Mar 2012, 23:45File version: 1.3
You can get OS4 mpega.library includes here:

This also includes a proto/mpega.h file.
Comment by: jaokim ( 11 Mar 2012, 14:38File version: 1.3
In order to make this compile in to an executable, I had to make these modifications:
1. Actaully link the program, not just compile
File: Examples/Mpega/Makefile
Change: Remove "-c" on 6th row, so the gcc also links it.
 gcc $(CFLAGS) $(LIBS) -o $(APPL) $(APPL).c

2. Use inlines
File: Examples/Mpega/MPEGA_demo.c
Change: Add these lines under line 38:
#include <inline4/mpega.h> 
#include <interfaces/mpega.h>  

The second change should really go into the include files with some sort of:
#ifdef __USE_INLINE__ 
include bla bla 


Copyright © 2004-2024 by Björn Hagström All Rights Reserved