Crackling audio output with command-line tool
Crackling audio output with command-line tool
- Subject: Crackling audio output with command-line tool
- From: Mihir Sarkar <email@hidden>
- Date: Fri, 5 Oct 2007 14:57:34 -0400
Hi,
Please forgive if this is not the right forum to post this...
I am porting someone else's audio processing code to Mac OS X. The
program is written in C and I am building it as a standard (command-
line) tool in Xcode. I am using the CoreAudio framework for audio I/
O. When I run the application on Terminal, it sounds fine... until I
click on any other window in my desktop environment and Terminal
loses focus. Then the sound starts to crackle. There doesn't seem to
be any obvious pattern in the way it sounds but it happens somewhat
consistently. One hypothesis is that on losing focus the process runs
in the background (with a lower priority?) and doesn't get enough
cycles to fill up its output buffers. Or it could be a completely
different reason. I am just wondering if someone came across
something similar and might want to share their experience (and
solution or approach) with me.
Please let me know if you need more info on the way I implemented my
calls to CoreAudio.
Thanks,
Mihir
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden