Fundamentals of Audio and Video Programming for Games (Pro-Developer)

Peter Turcan

Mike Wasson

Microsoft

PUBLISHED BY Microsoft Press A Division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399

Copyright 2004 Microsoft Corporation

All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher.

Library of Congress Cataloging-in-Publication Data Turcan, Peter, 1957- Fundamentals of Audio and Video Programming for Games / Peter Turcan, Michael Wasson. p. cm. Includes index.

ISBN 0-7356-1945-X

1. Computer games--Programming. 2. Computer sound processing. I. Wasson, Michael, 1968- II. Title. QA76.76.C672T84 2003 794.8'1536--dc22 2003060144

Printed and bound in the United States of America.

1 2 3 4 5 6 7 8 9 QWE 8 7 6 5 4 3

Distributed in Canada by H.B. Fenn and Company Ltd.

A CIP catalogue record for this book is available from the British Library.

Microsoft Press books are available through booksellers and distributors worldwide. For further information about international editions, contact your local Microsoft Corporation office or contact Microsoft Press International directly at fax (425) 936-7329. Visit our Web site at www.microsoft.com/mspress. Send comments to < mspinput@microsoft.com >.

Direct3D, DirectDraw, DirectInput, DirectMusic, DirectPlay, DirectShow, DirectSound, DirectX, Microsoft, Microsoft Press, Visual C++, Visual Studio, Win32, Windows, and Windows Media are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries . Other product and company names mentioned herein may be the trademarks of their respective owners .

The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name , e-mail address, logo, person, place, or event is intended or should be inferred.

Acquisitions Editor: Robin Van Steenburgh Project Editor: Lynn Finnel

Body Part No. X10-09361

Author Biographies

Illustrious authors of this book.

Dr Peter Turcan (top left) completed his BS degree in Computer Science at Edinburgh University in Scotland in 1978. He gained his PhD from Reading University in England four years later. His first venture into games immediately followed with a computer version of the Scrabble word game, which sold hundreds of thousands of copies. He then turned his attention to war games and programmed a series of seven strategy games: Borodino, Waterloo, Austerlitz, Gettysburg, Armada, Dreadnoughts, and Midway. After a run at working as a computer journalist in London, he emmigrated to the USA and joined Microsoft as a programming writer in the Digital Media Division. He has a painfully dry English sense of humor, not much of which survives the cutting board of Microsoft s ever-vigilant editors.

Mike Wasson (lower right) is a programming writer for the Microsoft DirectShow SDK. He received his BS degree in Computer Science from the University of Hawaii. Prior to joining Microsoft he worked as a copy editor. He was raised in New York and lived in Honolulu and Los Angeles before relocating to western Washington State for its bracing maritime climate. At Microsoft he has written volumes of documentation on DirectShow, and was one of the technical reviewers of Programming Microsoft DirectShow for Digital Video and Television (Microsoft Press). In his spare time he listens to copious amounts of jazz and Japanese pop music.

Bill Birney (lower left) has been creating content for over 35 years. During his career, he has worked as a scriptwriter, composer, producer, director, video editor, sound designer, and creative director. As a technical writer in the Digital Media Division, Bill co- authored the books Inside Windows Media , Windows Movie Maker Handbook and most recently the Windows Media Resource Kit (all by Microsoft Press). Bill believes the goal of every writer should be to bring their readers happiness.

Jim Travis (top right) is employed by Microsoft Corporation as a lead programming writer for Windows Media technologies. Prior to working at Microsoft, Jim owned his own multimedia software company, which supplied automation software to the entertainment industry. Jim has also been a live sound engineer and video technician, and once owned and operated a multitrack recording studio.

Категории