Immersitech Logo Developer Resources
immersitech_event_manager.h
Go to the documentation of this file.
1#pragma once
2
3#ifndef IMM_EVENT_MANAGER_H_
4#define IMM_EVENT_MANAGER_H_
5
6#include "immersitech.h"
7
10typedef enum {
22
28
32typedef void (*create_room_event_callback)(int room_id);
33
37typedef void (*destroy_room_event_callback)(int room_id);
38
45typedef void (*add_participant_event_callback)(int room_id, int participant_id, const char* participant_name, imm_participant_configuration config);
46
51typedef void (*remove_participant_event_callback)(int room_id, int participant_id);
52
58typedef void (*set_participant_seat_event_callback)(int room_id, int participant_id, imm_seat seat);
59
66typedef void (*set_participant_position_event_callback)(int room_id, int participant_id, imm_position position, imm_heading heading);
67
74typedef void (*set_participant_state_event_callback)(int room_id, int participant_id, imm_audio_control control_to_edit, int value);
75
81typedef void (*set_all_participants_state_event_callback)(int room_id, imm_audio_control control_to_edit, int value);
82
87typedef void (*set_room_layout_event_callback)(int room_id, int room_layout_id);
88
94typedef void (*set_name_event_callback)(int room_id, int participant_id, const char* name);
95
96typedef struct imm_event_manager_t
97{
109
110#endif //IMM_EVENT_MANAGER_H_
imm_audio_control
Audio Controls you can change in real-time.
Definition: immersitech.h:81
void(* remove_participant_event_callback)(int room_id, int participant_id)
Function pointer type for callback to propagate an IMM_EVENT_REMOVE_PARTICIPANT event.
Definition: immersitech_event_manager.h:51
struct imm_event_manager_t imm_event_manager
void(* set_participant_seat_event_callback)(int room_id, int participant_id, imm_seat seat)
Function pointer type for callback to propagate an IMM_EVENT_SET_PARTICIPANT_SEAT event.
Definition: immersitech_event_manager.h:58
imm_event_type
All possible events that an Immersitech Event manager can support.
Definition: immersitech_event_manager.h:10
@ IMM_EVENT_CREATE_ROOM
An event triggered when a room is created.
Definition: immersitech_event_manager.h:11
@ IMM_EVENT_ADD_PARTICIPANT
An event triggered when a participant is added to a room.
Definition: immersitech_event_manager.h:13
@ IMM_EVENT_DESTROY_ROOM
An event triggered when a room is destroyed.
Definition: immersitech_event_manager.h:12
@ IMM_EVENT_SET_PARTICIPANT_SEAT
An event triggered when a participant changes seats.
Definition: immersitech_event_manager.h:15
@ IMM_EVENT_SET_PARTICIPANT_STATE
An event triggered when a participant changes the value of an audio control.
Definition: immersitech_event_manager.h:17
@ IMM_EVENT_SET_NAME
An event triggered when a participant's name changes.
Definition: immersitech_event_manager.h:20
@ IMM_EVENT_SET_ALL_PARTICIPANTS_STATE
An event triggered when all participants change the value of an audio control.
Definition: immersitech_event_manager.h:18
@ IMM_EVENT_SET_ROOM_LAYOUT
An event triggered when a room has its layout changed.
Definition: immersitech_event_manager.h:19
@ IMM_EVENT_REMOVE_PARTICIPANT
An event triggered when a participant is removed from a room.
Definition: immersitech_event_manager.h:14
@ IMM_EVENT_SET_PARTICIPANT_POSITION
An event triggered when a participant changes position.
Definition: immersitech_event_manager.h:16
void(* set_room_layout_event_callback)(int room_id, int room_layout_id)
Function pointer type for callback to propagate an IMM_EVENT_SET_ROOM_LAYOUT event.
Definition: immersitech_event_manager.h:87
void(* set_all_participants_state_event_callback)(int room_id, imm_audio_control control_to_edit, int value)
Function pointer type for callback to propagate an IMM_EVENT_SET_ALL_PARTICIPANTS_STATE event.
Definition: immersitech_event_manager.h:81
void(* destroy_room_event_callback)(int room_id)
Function pointer type for callback to propagate an IMM_EVENT_DESTROY_ROOM event.
Definition: immersitech_event_manager.h:37
void(* add_participant_event_callback)(int room_id, int participant_id, const char *participant_name, imm_participant_configuration config)
Function pointer type for callback to propagate an IMM_EVENT_ADD_PARTICIPANT event.
Definition: immersitech_event_manager.h:45
void(* set_name_event_callback)(int room_id, int participant_id, const char *name)
Function pointer type for callback to propagate an IMM_EVENT_SET_NAME event.
Definition: immersitech_event_manager.h:94
void(* set_participant_position_event_callback)(int room_id, int participant_id, imm_position position, imm_heading heading)
Function pointer type for callback to propagate an IMM_EVENT_SET_PARTICIPANT_POSITION event.
Definition: immersitech_event_manager.h:66
void(* set_participant_state_event_callback)(int room_id, int participant_id, imm_audio_control control_to_edit, int value)
Function pointer type for callback to propagate an IMM_EVENT_SET_PARTICIPANT_STATE event.
Definition: immersitech_event_manager.h:74
void(* create_room_event_callback)(int room_id)
Default immersitech event manager.
Definition: immersitech_event_manager.h:32
Definition: immersitech_event_manager.h:97
create_room_event_callback cb_room_created
Definition: immersitech_event_manager.h:98
set_name_event_callback cb_participant_name_changed
Definition: immersitech_event_manager.h:107
set_room_layout_event_callback cb_room_layout_set
Definition: immersitech_event_manager.h:106
set_participant_seat_event_callback cb_participant_seat_changed
Definition: immersitech_event_manager.h:102
remove_participant_event_callback cb_participant_removed
Definition: immersitech_event_manager.h:101
destroy_room_event_callback cb_room_destroyed
Definition: immersitech_event_manager.h:99
set_participant_state_event_callback cb_participant_state_changed
Definition: immersitech_event_manager.h:104
add_participant_event_callback cb_participant_added
Definition: immersitech_event_manager.h:100
set_all_participants_state_event_callback cb_participants_state_changed
Definition: immersitech_event_manager.h:105
set_participant_position_event_callback cb_participant_position_changed
Definition: immersitech_event_manager.h:103
A structure to describe the direction a participant is facing in three-dimensional space.
Definition: immersitech.h:58
A structure to describe the configuration of a participant.
Definition: immersitech.h:178
A structure to describe a position within a three-dimensional space.
Definition: immersitech.h:45
A structure to describe a seat within a room.
Definition: immersitech.h:71