Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

Sound.h

Go to the documentation of this file.
00001 /****************************************************************************************/
00002 /*  Sound.h                                                                             */
00003 /*                                                                                      */
00004 /*  Author: Brian Adelberg                                                              */
00005 /*  Description: DirectSound wrapper                                                    */
00006 /*                                                                                      */
00007 /*  The contents of this file are subject to the Genesis3D Public License               */
00008 /*  Version 1.01 (the "License"); you may not use this file except in                   */
00009 /*  compliance with the License. You may obtain a copy of the License at                */
00010 /*  http://www.genesis3d.com                                                            */
00011 /*                                                                                      */
00012 /*  Software distributed under the License is distributed on an "AS IS"                 */
00013 /*  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See                */
00014 /*  the License for the specific language governing rights and limitations              */
00015 /*  under the License.                                                                  */
00016 /*                                                                                      */
00017 /*  The Original Code is Genesis3D, released March 25, 1999.                            */
00018 /*  Genesis3D Version 1.1 released November 15, 1999                                 */
00019 /*  Copyright (C) 1999 WildTangent, Inc. All Rights Reserved           */
00020 /*                                                                                      */
00021 /****************************************************************************************/
00022 #ifndef GE_SOUND_H
00023 #define GE_SOUND_H
00024 
00025 #ifdef  __cplusplus
00026 extern "C" {
00027 #endif
00028 
00029 
00030 // GENESIS_PUBLIC_APIS
00031 
00032 typedef struct geSound_System   geSound_System;
00033 typedef struct geSound_Def              geSound_Def;
00034 typedef struct geSound                  geSound;
00035 
00036 
00037 #ifdef _INC_WINDOWS
00038         // Windows.h must be previously included for this api to be exposed.
00039 GENESISAPI      geSound_System *geSound_CreateSoundSystem(HWND hWnd);
00040 #endif
00041 
00042 GENESISAPI      void                    geSound_DestroySoundSystem(geSound_System *Sound);
00043 
00044 
00045 GENESISAPI      geSound_Def        *geSound_LoadSoundDef(geSound_System *SoundS, geVFile *File);
00046 GENESISAPI      void                    geSound_FreeSoundDef(geSound_System *SoundS, 
00047                                                                         geSound_Def *SoundDef);
00048 
00049 GENESISAPI      void                    geSound_FreeAllChannels(geSound_System *SoundS);
00050 
00051 GENESISAPI      geSound            *geSound_PlaySoundDef(geSound_System *SoundS, 
00052                                                                         geSound_Def *SoundDef, 
00053                                                                         geFloat Volume, 
00054                                                                         geFloat Pan, 
00055                                                                         geFloat Frequency, 
00056                                                                         geBoolean Loop);
00057 GENESISAPI      geBoolean               geSound_StopSound(geSound_System *SoundS, geSound *Sound);
00058 GENESISAPI      geBoolean               geSound_ModifySound(geSound_System *SoundS, 
00059                                                                         geSound *Sound, 
00060                                                                         geFloat Volume, 
00061                                                                         geFloat Pan, 
00062                                                                         geFloat Frequency);
00063 GENESISAPI      geBoolean               geSound_SoundIsPlaying(geSound_System *SoundS, geSound *Sound);
00064 GENESISAPI      geBoolean               geSound_SetMasterVolume( geSound_System *SoundS, geFloat Volume );
00065 //      Added 11/08/1999 Ed Averill API call to return DSOUND object
00066 GENESISAPI void *geSound_GetDSound(void);
00067 //      End 11/08/1999 modification
00068 
00069 // GENESIS_PRIVATE_APIS
00070 
00071 #ifdef  __cplusplus
00072 }
00073 #endif
00074 
00075 #endif
00076 

Generated on Tue Sep 30 12:36:23 2003 for GTestAndEngine by doxygen 1.3.2