DR Developer's Guide
DR Interfaces | DR Methods | DR Types and Misc API

This file documents the IMoaDrSound interface. Note that there is IMoaDrSound2 which has all of the methods of IMoaDrSound, plus an additional PauseSound method. The method descriptions can be found in the IMoaDrSound2 file.

IMoaDrSound



Interface ID: IID_IMoaDrSound
Pointer type: PIMoaDrSound
Inheritance: IMoaUnknown
Header file: driservc.h
Description
This callback interface provides platform-independent access to the sound mixing capabilities of Director. On the Macintosh, up to 8 sound channels are available, each of which can simultaneously play sounds independent of the others. There are also 8 sound channels available on Windows. On older Windows systems, up to 4 sound channels were available for playing independent sounds. Sound channel numbering is 1-based.
Methods
GetSoundChannelCount() Determines the number of available sound channels.
GetSoundChannelStatus() Returns the status of a specified sound channel.
GetFreeSoundChannel() Returns the number of the next available sound channel.
PlaySoundFormat() Plays the specified sound.
PlaySoundRaw() Similar to PlaySoundFormat, but has an additional pRawSoundStream parameter and cue point support.
StopSoundChannel() Stops the sound in the specified channel.
SetSoundChannelVolume() Sets the volume for a particular sound channel.
GetTime() Returns the amount of time the sound in the specified channel has been playing.

GetFreeSoundChannel() see IMoaDrSound
GetSoundChannelCount() see IMoaDrSound
GetSoundChannelStatus() see IMoaDrSound
GetTime() see IMoaDrSound
PlaySoundFormat() see IMoaDrSound
PlaySoundRaw() see IMoaDrSound
SetSoundChannelVolume() see IMoaDrSound
StopSoundChannel() see IMoaDrSound
Copyright © 1995-2008 Adobe Macromedia Software LLC, Inc.