DirectSound Notes
1 Main Component in DirectSound
1.1 DirectSound
* needs to include Dsound.h
* Supports *.wav file only
1.2 DirectMusic
* needs to include Dmusici.h
* Supports *.wav file and MIDI file and a little bit other extensive functions.
2 Configuration
Device( unique per app )
|
Primary Buffer( unique per app )
| |...
Secondary Secondary ...
Buffer Buffer ...
| |...
Effect Effect ...
The properties need be set:
* Coperative Level--for several application which may access the device at the same time...must be set**
3. Streaming related
Play cursor -- GetCurrentPos, SetCurrentPos
Write cursor -- need be controlled carefully.
* write cursor is always supposed to be ahead of play cursor.
Play Buff Notification -- notified when play cursor reaches certain point in a buffer.
4. Nouns
* Sound rolloff -- As a sound source moves away form listener, its perceived volumn decreases at a fixed rate.
* HRTF --Head-related transfer function.
5. References
DirectX SDK April, 2006
1 Main Component in DirectSound
1.1 DirectSound
* needs to include Dsound.h
* Supports *.wav file only
1.2 DirectMusic
* needs to include Dmusici.h
* Supports *.wav file and MIDI file and a little bit other extensive functions.
2 Configuration
Device( unique per app )
|
Primary Buffer( unique per app )
| |...
Secondary Secondary ...
Buffer Buffer ...
| |...
Effect Effect ...
The properties need be set:
* Coperative Level--for several application which may access the device at the same time...must be set**
3. Streaming related
Play cursor -- GetCurrentPos, SetCurrentPos
Write cursor -- need be controlled carefully.
* write cursor is always supposed to be ahead of play cursor.
Play Buff Notification -- notified when play cursor reaches certain point in a buffer.
4. Nouns
* Sound rolloff -- As a sound source moves away form listener, its perceived volumn decreases at a fixed rate.
* HRTF --Head-related transfer function.
5. References
DirectX SDK April, 2006

0 Comments:
Post a Comment
<< Home