OS4 DepotLogo by Liksmaskaren 
(anonymous IP: 18.118.145.114,2193) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (596)
   o Document (22)
   o Driver (97)
   o Emulation (147)
   o Game (1004)
   o Graphics (497)
   o Library (115)
   o Network (232)
   o Office (66)
   o Utility (923)
   o Video (69)

Total files: 4365

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 Readme for:  Library » Audio » simpledt.lha

SimpleDT

Description: Simple library for sound/picture datatype
Download: simpledt.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 877kb
Version: 1.0
Date: 03 Aug 2013
Author: thellier@free.fr (Alain Thellier)
Submitter: uploader
Requirements: AmigaOS 4.x
Category: library/audio
License: Other
Distribute: yes
Min OS Version: 4.0
FileID: 8136
 
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 169  (Current version)
169  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
--------------------------------------------------------------------------------
-------------
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 © 2004-2024 by Björn Hagström All Rights Reserved