Tutorial 5 – Export AVI with Audio

Requirements:
Tutorial 4 – AVI Export Status


In the previous tutorial, we learned how to check the status of an AVI Export.

In this tutorial, we’ll learn how to Export an AVI with audio.

First, we need to give AxAuga access to a microphone on our camera:

We use AxAuga’s SetCameraIDispatch to give AxAuga access to the camera’s microphone for privileges to stream audio.

Now that AxAuga has audio streaming access from the camera’s microphone, let’s setup the Export with audio:

If you look closely, you’ll see that the only change above from what we already have is the audioURL setting. We use IMicrophone’s GetLiveUrl to get the streaming URL for the microphone as our audioURL during AxAuga’s StartAVIExport.

Screenshots of the final program:
Series-4-Tutorial-5-1
Series-4-Tutorial-5-2

That’s it. You can now Export AVIs with audio.


Next:
Tutorial 6 – Canceling AVI Exports