// // aeTypes.h // #ifndef __aeTypes_H__ #define __aeTypes_H__ #include #include #include #include #include #include #include using namespace std; //status def flags #define state_mask 7L enum{ status_empty =0L, status_loading =(1L << 0), status_standby =(1L << 1), status_playing =(1L << 2), status_hasPlayed =(1L << 3), status_finished =(1L << 4), status_logged =(1L << 5), status_waiting =(1L << 6), status_timeChange =(1L << 7) }; //kind def #define pType_unknown "\0" #define pType_list_stop "stop" #define pType_input_device "input" #define pType_audio_file "file" #define pType_db_item "item" #define pType_iax_line "phone" #define pType_realtime_stream "stream" #define constPrompt "ae>" #define nType_vol 0x01 #define nType_bal 0x02 #define nType_bus 0x03 #define nType_stat 0x04 #define inBusNum 8 #define inChNum 2 #define outBusNum 1 #define outChNum 8 #define bufDuration 16 // main output buffer size in seconds #define FEEDER_THREAD_IMPORTANCE 8 // priority of the threads that feed audio to the io-procs. // other defs struct threadPass { int client_socket; struct sockaddr_in client; int notify_socket; int notify_port; unsigned short notify_seq; int list_pos; }; struct notifyData { unsigned short seq; short pNum; char type; float fVal; int iVal; }; typedef map > meta_map; typedef map >::iterator meta_map_ptr; struct metaDataRecord { unsigned long users; // number of references pointing to this record unsigned long rev; // revision number: should be incrimented each time a change is made to the metaData meta_map metaData; // pointer to the meta data map }; typedef struct metaDataRecord metaDataRec; typedef struct metaDataRecord* metaDataPtr; typedef map > meta_list; typedef map >::iterator meta_list_ptr; typedef map > thread_list; typedef map >::iterator thread_list_ptr; struct ServerLogRecord { struct tm when; string message; }; typedef struct ServerLogRecord ServerLogStruct; struct ProgramLogRecord { time_t when; string name; string artist; string album; string source; string comment; long ID; long location; long albumID; long artistID; unsigned char added; unsigned char played; }; typedef struct ProgramLogRecord ProgramLogStruct; // Constatnts const unsigned char kUserDataIsText = 0xA9; // the copyright symbol specifies text in QuickTime User data #endif //__aeTypes_H__