mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	res_audiosocket: add message types for all slin sample rates
Extend audiosocket messages with types 0x11 - 0x18 to create asterisk frames in slin12, slin16, slin24, slin32, slin44, slin48, slin96, and slin192 format, enabling the transmission of audio at a higher sample rates. For audiosocket messages sent by Asterisk, the message kind is determined by the format of the originating asterisk frame. UpgradeNote: New audiosocket message types 0x11 - 0x18 has been added for slin12, slin16, slin24, slin32, slin44, slin48, slin96, and slin192 audio. External applications using audiosocket may need to be updated to support these message types if the audiosocket channel is created with one of these audio formats.
This commit is contained in:
		
				
					committed by
					
						![github-actions[bot]](/avatar/af2ab225b7c0eec44a8d0eba6b5c869a?size=40) github-actions[bot]
						github-actions[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							b0237143b2
						
					
				
				
					commit
					ff0523a3d0
				
			| @@ -39,19 +39,43 @@ extern "C" { | ||||
|  | ||||
| enum ast_audiosocket_msg_kind { | ||||
| 	/*! \brief Message indicates the channel should be hung up, direction: Sent only. */ | ||||
| 	AST_AUDIOSOCKET_KIND_HANGUP = 0x00, | ||||
| 	AST_AUDIOSOCKET_KIND_HANGUP         = 0x00, | ||||
|  | ||||
| 	/*! \brief Message contains the connection's UUID, direction: Received only. */ | ||||
| 	AST_AUDIOSOCKET_KIND_UUID   = 0x01, | ||||
| 	AST_AUDIOSOCKET_KIND_UUID           = 0x01, | ||||
|  | ||||
| 	/*! \brief Message contains a DTMF digit, direction: Received only. */ | ||||
| 	AST_AUDIOSOCKET_KIND_DTMF   = 0x03, | ||||
| 	AST_AUDIOSOCKET_KIND_DTMF           = 0x03, | ||||
|  | ||||
| 	/*! \brief Messages contains audio data, direction: Sent and received. */ | ||||
| 	AST_AUDIOSOCKET_KIND_AUDIO  = 0x10, | ||||
| 	/*! \brief Messages contains audio data, format: slin, direction: Sent and received. */ | ||||
| 	AST_AUDIOSOCKET_KIND_AUDIO          = 0x10, | ||||
|  | ||||
| 	/*! \brief Messages contains audio data, format: slin12, direction: Sent and received. */ | ||||
| 	AST_AUDIOSOCKET_KIND_AUDIO_SLIN12   = 0x11, | ||||
|  | ||||
| 	/*! \brief Messages contains audio data, format: slin16, direction: Sent and received. */ | ||||
| 	AST_AUDIOSOCKET_KIND_AUDIO_SLIN16   = 0x12, | ||||
|  | ||||
| 	/*! \brief Messages contains audio data, format: slin24, direction: Sent and received. */ | ||||
| 	AST_AUDIOSOCKET_KIND_AUDIO_SLIN24   = 0x13, | ||||
|  | ||||
| 	/*! \brief Messages contains audio data, format: slin32, direction: Sent and received. */ | ||||
| 	AST_AUDIOSOCKET_KIND_AUDIO_SLIN32   = 0x14, | ||||
|  | ||||
| 	/*! \brief Messages contains audio data, format: slin44, direction: Sent and received. */ | ||||
| 	AST_AUDIOSOCKET_KIND_AUDIO_SLIN44   = 0x15, | ||||
|  | ||||
| 	/*! \brief Messages contains audio data, format: slin48, direction: Sent and received. */ | ||||
| 	AST_AUDIOSOCKET_KIND_AUDIO_SLIN48   = 0x16, | ||||
|  | ||||
| 	/*! \brief Messages contains audio data, format: slin96, direction: Sent and received. */ | ||||
| 	AST_AUDIOSOCKET_KIND_AUDIO_SLIN96   = 0x17, | ||||
|  | ||||
| 	/*! \brief Messages contains audio data, format: slin192, direction: Sent and received. */ | ||||
| 	AST_AUDIOSOCKET_KIND_AUDIO_SLIN192  = 0x18, | ||||
|  | ||||
| 	/*! \brief An Asterisk-side error occurred, direction: Received only. */ | ||||
| 	AST_AUDIOSOCKET_KIND_ERROR  = 0xFF, | ||||
| 	AST_AUDIOSOCKET_KIND_ERROR          = 0xFF, | ||||
| }; | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user