John
John

Reputation: 733

skype - intercepting in coming audio - callback manipulation failed - skypefx

In order to intercept external audio that comes in I tried

InPort ="3756"

call.set_OutputDevice(TCallIoDeviceType.callIoDeviceTypePort, InPort.ToString());

// initialized inServer
inServer = new TcpServer(InPort);

inServer.DataReceived += inServer_DataReceived;

// In dataReceived event I tried playing a wav file 
args.Buffer = File.ReadAllBytes("C:\\check.wav");
inStream.Write(args.Buffer, 0, args.Buffer.Length);

Neither able to hear check.wav nor someway manipulate the incoming audio.

Any help is appreciated.

Upvotes: 1

Views: 748

Answers (3)

alexm
alexm

Reputation: 1315

you should see how skypefx does it, capturing stream directly from the memory buffer

here you will find skypefx source http://skypefx.codeplex.com/SourceControl/changeset/view/c1fa20a91a97

from the source you will notice there are various effects that work directly with the memory buffer.

Upvotes: 0

Pablo Yabo
Pablo Yabo

Reputation: 2803

You can start from this article that implements a solution for an old version. With small changes it could work: DirectSound Capture Using Deviare.

Upvotes: 1

Vagaus
Vagaus

Reputation: 4215

IIRIC, skype requires a very specific wav file format and so just trying "standard" wav files will not work - sorry, I am not a sound expert :(

I remember finding a good explanation in this forum post, but unfortunately it looks like the interesting link is broken.

Anyway, since I need this information I'll keep trying to find it elsewhere.

Best

Upvotes: 0

Related Questions