projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add AMR codec, for supporting EFR transcoding
[lcr.git]
/
gsm.h
diff --git
a/gsm.h
b/gsm.h
index
c152f42
..
b39b005
100644
(file)
--- a/
gsm.h
+++ b/
gsm.h
@@
-48,7
+48,9
@@
class Pgsm : public Port
struct lcr_msg *p_g_notify_pending; /* queue for NOTIFY if not connected */
struct lcr_msg *p_g_setup_pending; /* queue SETUP until RTP is created */
struct lcr_msg *p_g_connect_pending; /* queue CONNECT until RTP is created and connected */
struct lcr_msg *p_g_notify_pending; /* queue for NOTIFY if not connected */
struct lcr_msg *p_g_setup_pending; /* queue SETUP until RTP is created */
struct lcr_msg *p_g_connect_pending; /* queue CONNECT until RTP is created and connected */
- void *p_g_encoder, *p_g_decoder; /* gsm handle */
+ void *p_g_fr_encoder, *p_g_fr_decoder; /* gsm handle */
+ void *p_g_hr_encoder, *p_g_hr_decoder; /* gsm handle */
+ void *p_g_amr_encoder, *p_g_amr_decoder;/* gsm handle */
signed short p_g_rxdata[160]; /* receive audio buffer */
int p_g_rxpos; /* position in audio buffer 0..159 */
int p_g_tch_connected; /* indicates if audio is connected */
signed short p_g_rxdata[160]; /* receive audio buffer */
int p_g_rxpos; /* position in audio buffer 0..159 */
int p_g_tch_connected; /* indicates if audio is connected */
@@
-62,7
+64,7
@@
class Pgsm : public Port
int p_g_rtp_media_types[8];
unsigned char p_g_rtp_payload_types[8];
int p_g_rtp_media_types[8];
unsigned char p_g_rtp_payload_types[8];
- void frame_send(void *_frame);
+ void frame_send(void *_frame
, int len, int msg_type
);
void frame_receive(void *_frame);
int audio_send(unsigned char *data, int len);
int bridge_rx(unsigned char *data, int len);
void frame_receive(void *_frame);
int audio_send(unsigned char *data, int len);
int bridge_rx(unsigned char *data, int len);