[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

5120.0. "IFF sound from AmigaBasic" by USAT05::BRYANT () Sat Oct 12 1991 21:36

I've entered this note before and didn't get a streight answer.
The question is ....   Is there a way to play IFF soundfiles from AmigaBasic??
If there is I would really like to have an example of how. I feel certain some
of real programmers/hackers out threr can figure this one out.

					All I got is a floppy,
								Mike B.


T.RTitleUserPersonal
Name
DateLines
5120.1PEEVAX::GIFFORDMy dunny was kicked down by chooks!Sun Oct 13 1991 18:3621
Ok two ways...

First the Stan Gifford Quick and dirty way.

1. Open Iff file. Find out where sample is and how big (You will have to refer
to some manual like RKM for IFF formats!
2. Allocate enough memory for sample
3. Read sample in.

Or

Find some routine in PD (Try fish) that will read IFF - that will probably do
1,2 & 3.

Ok. Now you have a sample in memory, now reserve an audio channel and issue a
doio to that channel, and your sample will play.

As you can see a simple answer is not really available, I can upload a simple
C program that does the above - you could then try converting it to Abasic.

Stan.
5120.2IFF library from Christian Webber n WebberCX3PST::WSC017::A_ANDERSONCSC32::A_Anderson NSU/VAX DTN 592-4170Mon Oct 14 1991 09:0411
Also in the FF library (check note 1156) is a IFF library written by Christian
Webber.  I wrote a Hisoft program that will read an iff file and display it.  
I have not tried it from AmigaBasic.  

Also look into the Abacus books on Amiga Basic there are some IFF routines
there that will work with Amiga Basic.

I can upload the IFF Hisoft program but it would need to be modified for
Amiga Basic as I used some of the window features of Hisoft that does not
exist in amiga Basic.