Amiga.org
Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started 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..
-
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
-
There is no such function. You would have to write code for that yourself I'm afraid.
Davy
-
@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.
-
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
-
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
-
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
-
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.