Appendix B. Playing Music and Videos

IN THIS APPENDIX

  • Playing Back an Audio or Video File Simply

  • Using the Features of Video Files

  • Using Video as Textures

The Managed DirectX SDK included APIs to talk with each of the DirectX APIs, with the exception of DirectMusic and DirectShow. While the reasons for this decision could be debated, we understood early on that at the very least, developers were going to want (and need) a way to play DirectShow content, namely movies and encoded music (such as mp3s and wma files). We wanted a simple and easy-to-use interface for accessing this basic functionality, and thus the AudioVideoPlayback namespace was born. In this appendix we will cover this namespace, including

  • Simple playback of an audio file

  • Simple playback of a video file

  • Playing a video file in your own window

  • Using a video file as a texture in your 3D application



Managed DirectX 9 Graphics and Game Programming, Kick Start
Managed DirectX 9 Kick Start: Graphics and Game Programming
ISBN: B003D7JUW6
EAN: N/A
Year: 2002
Pages: 180
Authors: Tom Miller

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net