Re: Audio Device Driver
Re: Audio Device Driver
- Subject: Re: Audio Device Driver
- From: "Paul Sanders" <email@hidden>
- Date: Tue, 20 Apr 2010 14:22:04 +0100
> But I am experiencing some horrible clicking and the sound is
distorted. As I don't know too much about the mechanics of audio buffers, does
anybody have any tips or insight on why this occurs?
I would double-check that the sample format is what you think
it is and I would inspect the source code sources I mention to see how they go
about things. Does your AudioThruEngine run in user mode or kernel
mode? I don't program at kernel level on the Mac (well, OK, I
hacked a keyboard driver once) so I can offer no specific advice, but I know I
had problems with the various channel formats that CoreAudio requires user mode
code to support in its IOProc until (a) I got my head around it, and (b) I found
the relevant audio hardware to test on. Well, virtual hardware actually,
Jack and SoundFlower, plus a bit of help from customers with up-market
hardware. You are probably in for some fun driving the more esoteric
multi-channel devices.
If you're still not getting anywhere, feeding a pure sine wave
through your 'device' and inspecting the waveform you get back might give you
some clues.
Paul Sanders.
|
_______________________________________________
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