• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Resampling faster
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resampling faster


  • Subject: Re: Resampling faster
  • From: Michael Thornburgh <email@hidden>
  • Date: Sun, 23 May 2004 11:52:07 -0700

the HAL's default audio buffer size seems to be 512 frames, which at 8000Hz is quite a while (about 1/16th of a second). try setting the buffer size to a shorter period of time (kAudioDevicePropertyBufferFrameSize). also, start your output device before the input one, and (if necessary), flush the transfer buffer after both devices are running and stable.

-mike

On May 23, 2004, at 8:48 AM, Chilton Webb wrote:

Hi,

I have an 8 khz sound input device, and I need it to play through to the speakers in a Mac (44.1khz) in real time. Currently, the methods I've seen used for this employ a transfer buffer, and the buffer is resampled. This creates a lag of .5 to 1 second. Is there any way to do this faster?

Thanks,
-Chilton
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.


References: 
 >Resampling faster (From: Chilton Webb <email@hidden>)

  • Prev by Date: Resampling faster
  • Next by Date: code for VU meter ballistics
  • Previous by thread: Resampling faster
  • Next by thread: code for VU meter ballistics
  • Index(es):
    • Date
    • Thread