Lion писал(а):
Цитата:
Ребята! Wave для эфектов однозначно(если используешь DSound3D) в Mono - а DirectX
MP3 для музыки самый простой способ! Но c DirectMusic Producer для DX позволяет делать динамичную озвучку, меняющуюся взависимости от ситуации.
Что лутче DirectSound,DirectMusic или DirectShow?
Ответы лутче обоснавать фактами, а не доводами!!!
Что за вопрос! Эти библиотки все от MS и в одном пакете и выполняют разные задачи!
DirectMusic Producer
Microsoft DirectMusic Producer is a powerful authoring application included with the DirectX SDK. It enables composers to create dynamic musical elements that can be incorporated in an application.
Microsoft DirectX 8.1 (C++)
DirectSound and DirectMusic
Previous versions of DirectX presented audio features as two discrete components: DirectSound and DirectMusic. DirectSound was for playing and capturing prerecorded digital samples (waves), and DirectMusic was for playing message-based data ranging from simple MIDI files to musical segments authored in DirectMusic Producer. Although DirectMusic has always been capable of playing nonmusical sound effects through the use of DLS, the emphasis in the past was on its ability to play music.
With DirectX 8, the DirectMusic interfaces are the primary mechanism for loading and playing all sounds, whether they originate as files or resources in wave format, MIDI format, DirectMusic Producer format, or indeed any format for which an add-on loader and tools are available.
Applications can still use the DirectSound interfaces for wave playback, and DirectSoundCapture remains the API for wave capture. However, in most applications DirectSound does its work downstream from the DirectMusic synthesizer. It takes the output from the synthesizer, routes it through effects filters, applies 3-D effects, and does the final mixing before streaming the data to the output device.
If you've used DirectSound in the past, you'll find that switching to the DirectMusic interfaces for loading and playing waves offers the following advantages:
No need to parse the file or resource. The DirectMusic loader does it for you.
Automatic use of the Windows audio compression manager (ACM ) for wave formats other than those supported by DirectSound.
Automatic streaming of data. No more manual buffer creation and tracking of read and write pointers.
Better timing control. Not only can you schedule sounds more precisely using the DirectMusic master clock, but you can easily synchronize sound effects with music.
Easier management of multiple instances of a sound.
Waves incorporated in DirectMusic Producer files have additional advantages. MIDI controller effects such as pitch bend can be added to waves. Segments can contain wave variations, adding a random element to playback.
These advantages don't mean you have to lose the low-level control offered by DirectSound. The DirectMusic API enables you to access any object in the audiopath. If you want to get an interface for an existing buffer, you can easily do so. You can also take advantage of all the new features of the DirectSound API for adding filters and effects.
Introduction to DirectShow
Microsoft® DirectShow® is an architecture for streaming media on the Microsoft Windows® platform. DirectShow provides for high-quality capture and playback of multimedia streams. It supports a wide variety of formats, including Advanced Streaming Format (ASF), Motion Picture Experts Group (MPEG), Audio-Video Interleaved (AVI), MPEG Audio Layer-3 (MP3), and WAV files. It supports capture using Windows Driver Model (WDM) devices or older Video for Windows devices. DirectShow is integrated with other DirectX technologies. It automatically detects and uses video and audio acceleration hardware when available, but also supports systems without acceleration hardware.
DirectShow simplifies media playback, format conversion, and capture tasks. At the same time, it provides access to the underlying stream control architecture for applications that require custom solutions. You can also create your own DirectShow components to support new formats or custom effects.
Examples of the types of applications you can write with DirectShow include DVD players, video editing applications, AVI to ASF converters, MP3 players, and digital video capture applications.
DirectShow is based on the Component Object Model (COM). To write a DirectShow application, you must understand COM client programming. For most applications, you do not need to implement your own COM objects. DirectShow provides the components you need. (If you want to extend DirectShow by writing your own components, however, you must implement them as COM objects.)
Надюсь преводить и коментировать н надо?