mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 18:55:19 +00:00 
			
		
		
		
	Version 0.1.10 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -138,7 +138,7 @@ ulawtolin_framein (struct ast_translator_pvt *pvt, struct ast_frame *f) | ||||
|   /* Reset ssindex and signal to frame's specified values */ | ||||
|   b = f->data; | ||||
|   for (x=0;x<f->datalen;x++) | ||||
|   	tmp->outbuf[tmp->tail + x] = ast_mulaw[b[x]]; | ||||
|   	tmp->outbuf[tmp->tail + x] = AST_MULAW(b[x]); | ||||
|  | ||||
|   tmp->tail += f->datalen; | ||||
|   return 0; | ||||
| @@ -200,7 +200,7 @@ lintoulaw_framein (struct ast_translator_pvt *pvt, struct ast_frame *f) | ||||
|     } | ||||
|   s = f->data; | ||||
|   for (x=0;x<f->datalen/2;x++)  | ||||
|   	tmp->outbuf[x+tmp->tail] = ast_lin2mu[s[x]+32768]; | ||||
|   	tmp->outbuf[x+tmp->tail] = AST_LIN2MU(s[x]); | ||||
|   tmp->tail += f->datalen/2; | ||||
|   return 0; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user