Logo by Alkaron (anonymous IP: 3.149.239.79,0) | ||||||||||||
| ||||||||||||
Audio (343) Datatype (51) Demo (203) Development (602) Document (24) Driver (97) Emulation (149) Game (1011) Graphics (500) Library (118) Network (234) Office (66) Utility (932) Video (69) Total files: 4399 Full index file Recent index file
 Amigans.net  OpenAmiga  Aminet  UtilityBase  IntuitionBase  AmigaBounty
Support the site
|
[Show comments] [Show snapshots] [Show videos] [Show content] [Show crashlogs] -------------------------------------------------------------------------------- ------------- If you enjoyed this prog send me a postcard at: Thellier. 43 Rue Ordener. 75018 PARIS. FRANCE -------------------------------------------------------------------------------- ------------- INSTALLATION For OS3 copy SimpleDT.library TO LIBS: For PPC/OS4 copy SimpleDT.library-ppc TO LIBS:SimpleDT.library SimpleDT.library-debug and SimpleDT.library-ppc-debug contain debug versions that output what they do DESCRIPTION - ENGLISH Simple DataType library for playing any sound formats and reading any picture formats using datatypes SimpleDT.library: Alain THELLIER - Paris - FRANCE - 2013 If using datatypes to play a sound or read a picture was too difficult for you then SimpleDT.library is done for you Coding DataTypes has never been so simple : only 5 functions SDT_Load SDT_Play SDT_GetPicture SDT_VolumeChange SDT_Free I hope ASM coders or BASIC coders will now use datatypes :-) DESCRIPTION - FRANCAIS Simple DataType library est une bibliotheque de fonctions pour jouer des sons ou lire des images de tout formats grace aux datatypes SimpleDT.library: Alain THELLIER - Paris - FRANCE - 2013 Si utiliser les datatypes dans vos programmes pour jouer un son ou lire un image etait encore trop complexe pour vous alors SimpleDT.library est faite pour vous Coder les DataTypes n'a jamais ete aussi simple: rien que 5 fonctions SDT_Load SDT_Play SDT_GetPicture SDT_VolumeChange SDT_Free J'espere que les codeurs ASM ou BASIC utiliseront désormais les datatypes :-) ================================================================ FUNCTIONS - ENGLISH ---------------------------------------------------------------- ULONG SDT_Load(UBYTE* filename); load a sound or picture (any format) id1=SDT_Load("mysound.wav"); id2=SDT_Load("mypicture.jpg"); ---------------------------------------------------------------- ULONG SDT_GetPicture(ULONG id,APTR picture); get the picture data (any format) struct SDT_picture P; ok=SDT_GetPicture(id2,&P); Then P is filled like this P.pixels = pointer on picture pixels P.height P.width P.bits = bits per pixel : 24 or 32 ---------------------------------------------------------------- ULONG SDT_Play(ULONG id,ULONG replay,ULONG volume); play a sound (any format) ok=SDT_Play(id1,2,32); ---------------------------------------------------------------- ULONG SDT_VolumeChange(ULONG id,LONG volumechange); change the volume for a sound SDT_VolumeChange(id1,-1); SDT_VolumeChange(id1,+1); ---------------------------------------------------------------- ULONG SDT_Free(ULONG id); free a sound or picture SDT_Free(id1); SDT_Free(id2); ---------------------------------------------------------------- ================================================================ FUNCTIONS - FRANCAIS ---------------------------------------------------------------- ULONG SDT_Load(UBYTE* filename); charge un son ou un image (tout formats) id1=SDT_Load("mysound.wav"); id2=SDT_Load("mypicture.jpg"); ---------------------------------------------------------------- ULONG SDT_GetPicture(ULONG id,APTR picture); récupére les données images (tout formats) struct SDT_picture P; ok=SDT_GetPicture(id2,&P); Alors la structure P est remplie ainsi P.pixels = pointeur sur les pixels de l'image P.height = hauteur image P.width = largeur image P.bits = bits par pixel cad 24 ou 32 ---------------------------------------------------------------- ULONG SDT_Play(ULONG id,ULONG replay,ULONG volume); joue un son (tout formats) replay = nombre de repetition ok=SDT_Play(id1,2,32); ---------------------------------------------------------------- ULONG SDT_VolumeChange(ULONG id,LONG volumechange); change le volume d'un a son SDT_VolumeChange(id1,-1); SDT_VolumeChange(id1,+1); ---------------------------------------------------------------- ULONG SDT_Free(ULONG id); libére un son ou image en mémoire SDT_Free(id1); SDT_Free(id2); ---------------------------------------------------------------- |
Copyright (c) 2004-2024 by Björn Hagström All Rights Reserved Amiga OS and its logos are registered trademarks of Hyperion Entertainment |