for the program I want to write I need to record sound and process it while recording.
- AHIRecord works great but there is no C source code provided.
- HDRecord from AHI developer package does not seem to work on my PegasosII and it also has m68k assembler source which I want to avoid (want to code pure C if possible)
- RecordTest.c from AHI developer package does not seem to work when compilig with gcc -noixemul -o recordtest recordtest.c (even not after removing the __far stuff before buffer1[] and buffer2[] definition. I included some debug printfs with Delay(200) after each printf and I saw, that everything seems to work until the DoIO() call. When doing that call my PegasosII freezes completely (even the mouse pointer does not move anymore).
Do you have a hint on how to change RecordTest.c to get it working with soundinput (I have connected a microphone to a preamplifier and the preamplifier to the line in port of my peg; this setup works if used with AHIRecord and with that prog I was able to record).
Or do you know some other (small) C example code that shows how to read sound data from line in?
(and btw.: any idea why mic in does not work and why I cannot set it active in PegasosMixer?)