Sound factory interface.
Driver | |
| virtual tU32 | GetNumDrivers () const =0 |
| Get the number of sound drivers available. {Property}. More... | |
| virtual iSoundDriver * | GetDriver (tU32 anIndex) const =0 |
| Get the driver at the specified index. {Property}. More... | |
| virtual iHString * | GetDriverName (tU32 anIndex) const =0 |
| Get the name of the sound driver at the specified index. {Property}. More... | |
| virtual tSoundDriverCapFlags | GetDriverCaps (tU32 anIndex) const =0 |
| Get the caps of the sound driver at the specified index. {Property}. More... | |
| virtual tU32 | GetDriverIndex (iHString *ahspName) const =0 |
| Get the index of the driver with the specified name. {Property}. More... | |
| virtual tBool | StartupDriver (tU32 anDriver, eSoundFormat aFormat, tU32 anFrequency, tIntPtr aWindowHandle)=0 |
| Initialize the specified sound driver. More... | |
| virtual tBool | ShutdownDriver ()=0 |
| Shutdown the current sound driver. More... | |
| virtual tU32 | GetActiveDriver () const =0 |
| Get the active driver. {Property}. More... | |
| virtual iSoundDriverBuffer * | GetBuffer () const =0 |
| Get the driver's sound buffer. {Property}. More... | |
| virtual iSoundMixer * | GetMixer () const =0 |
| Get the sound mixer. {Property}. More... | |
| virtual iSoundMixer3D * | GetMixer3D () const =0 |
| Get the 3d sound mixer. {Property}. More... | |
| virtual tBool | SwitchIn ()=0 |
| To call when the application is activated. More... | |
| virtual tBool | SwitchOut ()=0 |
| To call when the application is deactivated. More... | |
General | |
| tU32 | FindFreeChannel (eSoundMode aMode) const |
| Find the first free channel. More... | |
| tU32 | FindFreeChannelPriority (eSoundMode aMode, tU32 anPriority) const |
| Find the first free channel, possibily over a used channel with the specified priority. More... | |
| virtual tBool | Update (ni::tF32 afDeltaTime)=0 |
| Update the sounds. More... | |
Sound Data, Sound Buffer & Sound Source | |
| virtual iSoundData * | LoadSoundData (iFile *apFile)=0 |
| Load sound data from the specified file. More... | |
| virtual iSoundBuffer * | CreateSoundBufferEx (iSoundData *apData, tBool abStream, iHString *ahspName=NULL)=0 |
| Create a sound buffer from the specified sound data. More... | |
| virtual iSoundBuffer * | CreateSoundBuffer (iFile *apFile, tBool abStream, iHString *ahspName=NULL)=0 |
| Create a sound buffer from the specified file. More... | |
| virtual ni::iSoundBuffer * | CreateSoundBufferFromRes (ni::iHString *ahspName, ni::tBool abStream)=0 |
| Create a sound buffer from the specified resource. More... | |
| virtual iSoundBuffer * | GetSoundBuffer (iHString *ahspName)=0 |
| Get the sound buffer with the given name. {Property}. More... | |
| virtual iSoundSource * | CreateSoundSource (iSoundBuffer *apBuffer)=0 |
| Create a new sound source. More... | |
Listener | |
| virtual void | SetListenerPosition (const sVec3f &aV)=0 |
| Set the listener's position. {Property}. More... | |
| virtual sVec3f | GetListenerPosition () const =0 |
| Get the listener's position. {Property}. More... | |
| virtual void | SetListenerVelocity (const sVec3f &aV)=0 |
| Set the listener's velocity. {Property}. More... | |
| virtual sVec3f | GetListenerVelocity () const =0 |
| Get the listener's velocity. {Property}. More... | |
| virtual void | SetListenerForward (const sVec3f &aV)=0 |
| Set the listener's forward/looking direction. {Property}. More... | |
| virtual sVec3f | GetListenerForward () const =0 |
| Get the listener's forward/looking direction. {Property}. More... | |
| virtual void | SetListenerUp (const sVec3f &aV)=0 |
| Set the listener's up direction. {Property}. More... | |
| virtual sVec3f | GetListenerUp () const =0 |
| Get the listener's up direction. {Property}. More... | |
| virtual void | SetListenerDistanceScale (tF32 afScale)=0 |
| Set the listener's distance scale. {Property}. More... | |
| virtual tF32 | GetListenerDistanceScale () const =0 |
| Get the listener's distance scale. {Property}. More... | |
| virtual void | SetListenerRolloffScale (tF32 afScale)=0 |
| Set the listener's rolloff scale. {Property}. More... | |
| virtual tF32 | GetListenerRolloffScale () const =0 |
| Get the listener's rolloff scale. {Property}. More... | |
| virtual void | SetListenerDopplerScale (tF32 afScale)=0 |
| Set the listener's doppler scale. {Property}. More... | |
| virtual tF32 | GetListenerDopplerScale () const =0 |
| Get the listener's doppler scale. {Property}. More... | |
Music playback API | |
| virtual ni::tBool | MusicPlay (iSoundSource *apSoundSource, ni::tF32 afVolume, ni::tF32 afSpeed, ni::tF32 afBlendTime)=0 |
| Play a music. More... | |
| virtual ni::tBool | MusicStop (ni::tF32 afBlendTime)=0 |
| Stop the current music. More... | |
| virtual ni::tBool | MusicSpeed (ni::tF32 afSpeed, ni::tF32 afBlendTime)=0 |
| Set the new speed of the music. More... | |
| virtual ni::tBool | MusicVolume (ni::tF32 afVolume, ni::tF32 afBlendTime)=0 |
| Set the new volume of the music. More... | |
Additional Inherited Members | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
|
pure virtual |
Get the number of sound drivers available. {Property}.
|
pure virtual |
Get the driver at the specified index. {Property}.
Get the name of the sound driver at the specified index. {Property}.
|
pure virtual |
Get the caps of the sound driver at the specified index. {Property}.
Get the index of the driver with the specified name. {Property}.
|
pure virtual |
Initialize the specified sound driver.
| anDriver | is the index of the driver to start. If eInvalidHandle the best driver available will be selected. |
| aFormat | is the format to use in the driver. |
| anFrequency | is the frequency to use in the driver. |
| aWindowHandle,if | not NULL specify the window handle to pass to the sound driver. This is ignored by some drivers, and is usefull only when using the sound module without the full SDK, since the SDK will already holds a proper window handle. |
|
pure virtual |
Shutdown the current sound driver.
|
pure virtual |
Get the active driver. {Property}.
|
pure virtual |
Get the driver's sound buffer. {Property}.
|
pure virtual |
Get the sound mixer. {Property}.
|
pure virtual |
Get the 3d sound mixer. {Property}.
|
pure virtual |
To call when the application is activated.
|
pure virtual |
To call when the application is deactivated.
| tU32 FindFreeChannel | ( | eSoundMode | aMode | ) | const |
Find the first free channel.
| tU32 FindFreeChannelPriority | ( | eSoundMode | aMode, |
| tU32 | anPriority | ||
| ) | const |
Find the first free channel, possibily over a used channel with the specified priority.
|
pure virtual |
Load sound data from the specified file.
|
pure virtual |
Create a sound buffer from the specified sound data.
|
pure virtual |
Create a sound buffer from the specified file.
|
pure virtual |
Create a sound buffer from the specified resource.
|
pure virtual |
Get the sound buffer with the given name. {Property}.
|
pure virtual |
Create a new sound source.
Set the listener's position. {Property}.
|
pure virtual |
Get the listener's position. {Property}.
Set the listener's velocity. {Property}.
|
pure virtual |
Get the listener's velocity. {Property}.
Set the listener's forward/looking direction. {Property}.
|
pure virtual |
Get the listener's forward/looking direction. {Property}.
Set the listener's up direction. {Property}.
|
pure virtual |
Get the listener's up direction. {Property}.
Set the listener's distance scale. {Property}.
|
pure virtual |
Get the listener's distance scale. {Property}.
Set the listener's rolloff scale. {Property}.
|
pure virtual |
Get the listener's rolloff scale. {Property}.
Set the listener's doppler scale. {Property}.
|
pure virtual |
Get the listener's doppler scale. {Property}.
|
pure virtual |
Play a music.
Set the new speed of the music.
1.8.7