Sound Manager
sm-error.h
Go to the documentation of this file.
1 #ifndef SM_ERROR_H
2 #define SM_ERROR_H
3 
5 {
6  switch (am_error_code){
7  case 0:
8  return "OK";
9  case 1:
10  return "unknown error";
11  case 2:
12  return "value out of range";
13  case 3:
14  return "not used";
15  case 4:
16  return "database error occured";
17  case 5:
18  return "the desired object already exists";
19  case 6:
20  return "there is no change";
21  case 7:
22  return "the desired action is not possible";
23  case 8:
24  return "the desired object is non existent";
25  case 9:
26  return "the asynchronous action was aborted";
27  case 10:
28  return "connectionFormat is not selected";
29  case 11:
30  return "communication error";
31  case 100:
32  return "desired event doesn't exist";
33  default:
34  return "Audio Manager responsed unknown error number";
35  }
36 }
37 
38 char* get_source_state_key(int am_source_state){
39  switch (am_source_state){
40  case 0:
41  return "unknown";
42  case 1:
43  return "on";
44  case 2:
45  return "off";
46  case 3:
47  return "paused";
48  default:
49  return "";
50  }
51 }
52 #endif
char * get_response_audiomanager_massage_error(int am_error_code)
Definition: sm-error.h:4
char * get_source_state_key(int am_source_state)
Definition: sm-error.h:38