Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
61 user(s) are online (37 user(s) are browsing Forums)

Members: 0
Guests: 61

more...

Headlines

 
  Register To Post  

AHI record buffer size..?
Quite a regular
Quite a regular


See User information
Hi people,

I'm puzzled... I've just ported my QuickRecord program to OS4 to test on my A4000 with a USB audio stick.
I'm getting a crash in my code and I think it's because ahirm_length is 30 - this seems stupidly small - and it's running too slowly in the callback, meaning the buffer gets too big and then splat.

Is there a way to increase the buffer size recorded before the callback is called? I don't care too much about latency.

Thanks for any help!

--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my company's shop: http://www.mutant-caterpillar.co.uk/shop/ - specialising in Sinclair Spectrums but will be adding Amigas!
Go to top
Re: AHI record buffer size..?
Not too shy to talk
Not too shy to talk


See User information
I think AHI would normally have quite a small buffer to keep latencies low - it's not critical for recording, but for most normal purposes latencies need to be as low as possible. I would've said the buffer would need to be on the file saving end of the application - if the buffer's filling because the filesystem can't take the amount of data coming from AHI, it's not really down to AHI to deal with...

Go to top
Re: AHI record buffer size..?
Quite a regular
Quite a regular


See User information
I think I sorted the problem.

Under AROS and even I think AmigaOS with a PCI card, AHI always returned the same buffer size, which was a factor of the max buffer size sent to AHI. With the USB one, the size of each chunk varied so I was over-running the end of my buffer.

Now I fixed that, the only problem was that I had to whack up the size of the buffer in my code otherwise I got a lot of clicking. I got it to record seemingly ok, though. :) Not bad for a £5 sound card on a 17 year old machine, really.

--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my company's shop: http://www.mutant-caterpillar.co.uk/shop/ - specialising in Sinclair Spectrums but will be adding Amigas!
Go to top
Re: AHI record buffer size..?
Not too shy to talk
Not too shy to talk


See User information
Good work :) It's always good to expand support to new devices and capabilities!

Go to top
Re: AHI record buffer size..?
Quite a regular
Quite a regular


See User information
I got it recording but it clicks between buffers. Same code works fine in AROS, so I wonder if OS4 isn't fast enough to cope, or am I doing something wrong....

Need to look into it more!

--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my company's shop: http://www.mutant-caterpillar.co.uk/shop/ - specialising in Sinclair Spectrums but will be adding Amigas!
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project