Recording with AHI?

5 posts / 0 new
Last post
Deniil
Deniil's picture
Offline
Last seen: 7 years 6 months ago
Joined: 2011-03-02 13:06
Recording with AHI?
I need to record using AHI but normal double-buffring with ios->link doesn't seem to work like when you play. Am I not supposed to use double buffering? Will AHI or the sound card keep a buffer for me so recording will be gapless or how is it supposed to work? I have a recorder and a player running at the same time, currently as a loopback, but they drift as if the recorder lags behind (due to not being double-buffered). But when I enable the same double-buffering technique as for playing ti just stops responding. The WaitIO's doesn't seem to respond to SendIO if I start by sending two like when playing. Help
Deniil
Deniil's picture
Offline
Last seen: 7 years 6 months ago
Joined: 2011-03-02 13:06
Ok, I have now gotten it to
Ok, I have now gotten it to record. The io_Offset parameter obviously plays a key role here and the link is not supported when recording. Still, my loopback from the recorder to the player works very badly. They both use double buffering but they just don't sync at all so buffers gets reused or skipped. This stuff needs to work on saturday because it will be a karaoke microphone effect used for a party!
Member of OnyxSoft.se. Developer mainly for Amiga OS4 and Classic. AmigaOne-XE G4/800, Radeon9250, 512MB RAM.
Deniil
Deniil's picture
Offline
Last seen: 7 years 6 months ago
Joined: 2011-03-02 13:06
Ok, no audio people here
Ok, no audio people here apparently.. ;) Anyway, it seems like the AC97 driver is buggy. When I switched to CMI8738 it works (almost) perfectly nice. No lagging, no gaps, no pitch shift. I'll post a bug.
Member of OnyxSoft.se. Developer mainly for Amiga OS4 and Classic. AmigaOne-XE G4/800, Radeon9250, 512MB RAM.
hypex
hypex's picture
Offline
Last seen: 2 months 1 week ago
Joined: 2011-09-09 16:20
Have you looked in that AHI
Have you looked in that AHI dev guide? Should be ion AHI dev archive. I read something about doing a DoIO() with an offset of 0, then a SendIO() on the same device block but leaving the offset. Then waiting on the first.
Deniil
Deniil's picture
Offline
Last seen: 7 years 6 months ago
Joined: 2011-03-02 13:06
Not sure if I have the AHI
Not sure if I have the AHI dev guide, but I looked in the autodocs and I use SendIO all the time. But with offset=0 the first time and it appears to work fine. I filed a bug on the AC97-driver because I think that is why it didn't work. It simply doesn't deliver data the way it should. The CMI-driver works as expected.
Member of OnyxSoft.se. Developer mainly for Amiga OS4 and Classic. AmigaOne-XE G4/800, Radeon9250, 512MB RAM.
Log in or register to post comments