File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ const char* const UBX_CELL_COMMAND_PLAY_AUDIO = "+UPAR"; // Play audio resour
10
10
const char * const UBX_CELL_COMMAND_STOP_AUDIO = " +USAR" ; // Stop audio resource
11
11
const char * const UBX_CELL_COMMAND_GENERATE_TONE = " +UTGN" ; // Tone generator
12
12
13
+ typedef enum
14
+ {
15
+ UBX_CELL_AUDIO_RESOURCE_TONE = 0 ,
16
+ UBX_CELL_AUDIO_RESOURCE_MIDI = 1 ,
17
+ UBX_CELL_AUDIO_RESOURCE_LOOPBACK = 2
18
+ } UBX_CELL_audio_resource_t;
19
+
13
20
// Base class for any modules supporting voice calls
14
21
template <typename T>
15
22
class UBX_CELL_VOICE
@@ -60,7 +67,7 @@ class UBX_CELL_VOICE
60
67
nullptr , UBX_CELL_STANDARD_RESPONSE_TIMEOUT);
61
68
}
62
69
63
- UBX_CELL_error_t playAudioResource (uint8_t audio_resource, uint8_t tone_id, uint8_t nof_repeat)
70
+ UBX_CELL_error_t playAudioResource (uint8_t audio_resource, uint8_t tone_id = 0 , uint8_t nof_repeat = 0 )
64
71
{
65
72
UBX_CELL_error_t err;
66
73
char *command;
You can’t perform that action at this time.
0 commit comments