Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: jahc on April 13, 2003, 04:50:49 PM

Title: Getting started with AHI
Post by: jahc on April 13, 2003, 04:50:49 PM
How do you do load up a wav or iff sample from disk, then play it? I'm reading the AHI developer archive from aminet, I can't find a function that will read a sound sample from disk..
Title: Re: Getting started with AHI
Post by: Alkemyst on April 13, 2003, 05:06:41 PM
AHI is not a player. its a sound system.

get ftp://de.aminet.net/pub/aminet/mus/play/Play16_1.9.lha

it can use AHI
Title: Re: Getting started with AHI
Post by: DaveAE on April 13, 2003, 05:25:27 PM
There is no such function. You would have to write code for that yourself I'm afraid.

Davy
Title: Re: Getting started with AHI
Post by: jahc on April 14, 2003, 04:24:36 AM
@Alkemyst

I know its a sound system, I want to create music software.

@Davey

Well, if anyone would know, the creator of Audio Evolution would. :) Thanks for the info. Looks like I wont be able to create the program I had in mind, as I'm just a novice programmer. I was hoping the AHI system would have built in commands for loading wavs etc. Damn.

Title: Re: Getting started with AHI
Post by: yssing on April 14, 2003, 07:45:49 AM
Hi

Well as for loading WAVs, you can use lucyplay.library, just do an aminet search.
lucyplay is really easy to use.

Or, you can use on of the examples in the AHI archive, I used that for loading and playing RAW.
If you have any questions, just ask.

But I think you should look into lucyplay.library
Title: Re: Getting started with AHI
Post by: PiR on April 14, 2003, 12:36:29 PM
Hi jahc

As already noted AHI is a system that is supposed to utilize the hardware for playing prepared sound.

I have to be honest, I've never done this, so I can be wrong. However I think that the best way to deal with variable input formats in very Amiga way is to use datatypes. The were supposed to do the job. And you could utilize any format if you only have apropriate datatype installed.

It would be nice if someone that used datatypes would verify this.

Good luck
Title: Re: Getting started with AHI
Post by: bloodline on April 14, 2003, 01:13:13 PM
Quote

jahc wrote:
@Alkemyst

I know its a sound system, I want to create music software.

@Davey

Well, if anyone would know, the creator of Audio Evolution would. :) Thanks for the info. Looks like I wont be able to create the program I had in mind, as I'm just a novice programmer. I was hoping the AHI system would have built in commands for loading wavs etc. Damn.



Writing Music software eh?

Here is my tip of the day: use SDL... that way you can develop and prototype on any type of machine only moving to the Amiga when you need/want to...

A Friend and myself are writing a Softsynth (Think Reason :-o ), we have started and use SDL, we develop on Windows machines but hope to make it avaible for all/most platforms which support SDL  :-D
Title: Re: Getting started with AHI
Post by: Darth_X on April 14, 2003, 02:29:49 PM
Hey Jahc! :-D

JAHC look here (http://www.lysator.liu.se/~lcs/files/ahi/doc/ahidev_10.html#SEC20)

Don't know if this is what you are looking for.