Help with audio

Since im bored and don't have anything better to do, I was wondering how do I play a simple mp3 through my mic. I plan on using this to just play annoying sounds through skype and games(on windows 7 btw).
You could record a simple mp3 through a mic. Or you could play a simple mp3 through speakers.

To write code to play an mp3, check out SFML. It's a nice and simple way to start using sound in your programs.
http://sfml-dev.org/tutorials/2.1/#audio-module

Playing annoying sounds through skype is another task all-togeather. To play a sound on a remote machine by using a 3rd party application is no easy task. You'd need to figure out how to get your sound file onto that machine, figure out how to inject your code into that 3rd party application, and figure out how to excite that code so that you can control what happens on that person's computer. If you figure out how to do that without triggering every anti-virus out there, and without being arrested, you could make a ton of moolah from spammers.
Thanks for the reply and a great idea lol. I will check it out
Last edited on
To play a sound on a remote machine by using a 3rd party application is no easy task. You'd need to figure out how to get your sound file onto that machine, figure out how to inject your code into that 3rd party application, and figure out how to excite that code so that you can control what happens on that person's computer. If you figure out how to do that without triggering every anti-virus out there, and without being arrested, you could make a ton of moolah from spammers.
A much, much, much easier solution would be to hook the function Skype uses to get audio data from the input device and mix in the samples you want the other person to hear. I believe everything goes through DirectSound nowadays, so it shouldn't be too difficult.
Easier still would be to see if Skype has an SDK that can override the audio functions.
Well. these people say that hooking Skype is hard because Skype designers use non-standard tricks.
http://blog.nektra.com/main/2009/02/24/directsound-capture-using-deviare/

They have an already written SDK, but unfortunately not for free:
http://www.nektra.com/products/audio-recorder-api/

However, their excellent hooking library is free and much better that Microsoft Detours:
http://www.nektra.com/products/deviare-api-hook-windows/
Last edited on
Hey! You found our website!

Well. these people say that hooking Skype is hard because Skype designers use non-standard tricks.
I'll have to take your word for it, but do note that the article talks about recording both input and output synchronized, not just input.

Deviare is really cool, but I'm not sure if the interfaces in the free version have a low enough latency for audio processing. Myself, I'd use Deviare-InProc for this.
So you can hook audio? that's AWESOME and exactly what I was looking for. thanks a bunch helios and modoran :)
Topic archived. No new replies allowed.