sound.h

Go to the documentation of this file.
00001 
00025 #ifndef _GAIM_SOUND_H_
00026 #define _GAIM_SOUND_H_
00027 
00028 /**************************************************************************/
00030 /**************************************************************************/
00031 
00032 
00037 typedef enum _GaimSoundEventID
00038 {
00039     GAIM_SOUND_BUDDY_ARRIVE = 0, 
00040     GAIM_SOUND_BUDDY_LEAVE,      
00041     GAIM_SOUND_RECEIVE,          
00042     GAIM_SOUND_FIRST_RECEIVE,    
00043     GAIM_SOUND_SEND,             
00044     GAIM_SOUND_CHAT_JOIN,        
00045     GAIM_SOUND_CHAT_LEAVE,       
00046     GAIM_SOUND_CHAT_YOU_SAY,     
00047     GAIM_SOUND_CHAT_SAY,         
00048     GAIM_SOUND_POUNCE_DEFAULT,   
00049     GAIM_SOUND_CHAT_NICK,        
00050     GAIM_NUM_SOUNDS              
00052 } GaimSoundEventID;
00053 
00054 typedef struct _GaimSoundUiOps
00055 {
00056     void (*init)(void);
00057     void (*shutdown)(void);
00058     void (*play_file)(const char *filename);
00059     void (*play_event)(GaimSoundEventID event);
00060 
00061 } GaimSoundUiOps;
00062 
00063 #ifdef __cplusplus
00064 extern "C" {
00065 #endif
00066 
00067 /**************************************************************************/
00069 /**************************************************************************/
00077 void gaim_sound_set_ui_ops(GaimSoundUiOps *ops);
00078 
00084 GaimSoundUiOps *gaim_sound_get_ui_ops(void);
00085 
00089 void gaim_sound_init(void);
00090 
00094 void gaim_sound_shutdown(void);
00095 
00101 void gaim_sound_play_file(const char *filename);
00102 
00108 void gaim_sound_play_event(GaimSoundEventID event);
00109 
00112 #ifdef __cplusplus
00113 }
00114 #endif
00115 
00116 #endif /* _GAIM_SOUND_H_ */

Generated on Wed Aug 9 23:40:23 2006 for gaim by  doxygen 1.4.7