How can I write directly to audio device output buffer, or the speaker of it, and how can read the microphone input directly from it's buffer, is there any API function to do that?