• On Windows server, captured audio by injecting DLL into processes and intercept system audio stream
• Designed audio mixing, AAC encoding, TCP network transmission and AAC decoding modules
• On client, implemented audio player with buffer mechanism
• Supports multiple sessions for multiple clients
Instructions:
-
Install detours library in C:\Program Files\Detours.
-
Locate Line 21 in InjectDLL/InjectDLL.cpp, change the if-sentence with the process names you want to inject into.
-
Locate Line 19 in TestLibPlayer/TestLibPlayer.h, change SERVER_ADD to the actual address of server. If you want to test locally, just leave it be.
-
Build 'AudioHook'.
-
Move AudioHook2.dll from AudioHook\Release to TestCaptureAudio\Release.
-
Locate Line 25 in InjectDLL/InjectDLL.cpp, change the path to AudioHook2.dll file, aka path to "TestCaptureAudio\Release\AudioHook2.dll".
-
Build all other subprojects.
-
On server, run the processes that you want to capture audio.
-
On server, run InjectDll.exe in 'InjectDLL' to inject the dll into the processes and start capturing audio.
-
On server, run TestCaptureAudio.exe in 'TestCaptureAudio' to read audio from buffer and mix.
-
On client, run TestLibPlayer.exe in 'TestLibPlayer' to play audio.