If you want, you can also use DirectX, but it is a bit complicated...
This website is in Italian, but I think it's a good resource, maybe you can translate it with Google Translate. Search for DirectX9 Tutorials and look for audiovideo.
http://robydx.135.it/[
^]