OS4 DepotLogo by mason 
(anonymous IP: 3.14.142.131,2254) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (602)
   o Document (24)
   o Driver (97)
   o Emulation (148)
   o Game (1010)
   o Graphics (500)
   o Library (118)
   o Network (233)
   o Office (66)
   o Utility (932)
   o Video (69)

Total files: 4396

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 File comments for:  Development » Example » mpega_demo.lha

Mpega_demo

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: https://os4depot.net/modules/comments/rssfeed.php?file=development/example/mpega_demo.lha

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

Comment by: kas1e (81.9.23.166)At: 12 Mar 2012, 09:43File version: 1.3
@salas00
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 (94.101.5.193)At: 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 (94.101.5.193)At: 11 Mar 2012, 23:45File version: 1.3
You can get OS4 mpega.library includes here:
http://dl.dropbox.com/u/26599983/mpega_os4_includes.7z

This also includes a proto/mpega.h file.
 
 
Comment by: jaokim (176.10.225.152)At: 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 
#endif

 
 

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