I also have code that plays sound from a buffer using waveOut APIs. I also have code that records sound from a mic using waveIn APIs.
Is there a way to take the sound I get from the buffer (waveOut) and pipe it into the waveIn API so that it replaces the mic? I'm thinking if I can talk into a mic and record the sound then why can I not take pre-recorded sound and send it through the mic so to speak. I don't mean to literally send the sound through the mic; I mean to replace the mic but use the same APIs in such a way that the sound is coming from a buffer of pre-recorded sound rather than coming through the mic.
Is there a way to take the sound I get from the buffer (waveOut) and pipe it into the waveIn API so that it replaces the mic? I'm thinking if I can talk into a mic and record the sound then why can I not take pre-recorded sound and send it through the mic so to speak. I don't mean to literally send the sound through the mic; I mean to replace the mic but use the same APIs in such a way that the sound is coming from a buffer of pre-recorded sound rather than coming through the mic.