OS4 DepotLogo by Alkaron 
(anonymous IP: 3.149.239.79,0) 
 HomeRecentStatsSearchMirrorsContactInfoDisclaimerConfigAdmin
 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 (149)
   o Game (1011)
   o Graphics (500)
   o Library (118)
   o Network (234)
   o Office (66)
   o Utility (932)
   o Video (69)

Total files: 4399

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  UtilityBase
  IntuitionBase
  AmigaBounty


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 13
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:  (Current version)
 (Accumulated)

[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