mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Add two new dialplan functions from libspeex for applying audio gain control
and denoising to a channel, AGC() and DENOISE(). Also included, is a change to the audiohook API to add a new function (ast_audiohook_remove) that can remove an audiohook from a channel before it is detached. This code is based on a contribution from Switchvox. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114926 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -160,6 +160,18 @@ int ast_audiohook_detach_list(struct ast_audiohook_list *audiohook_list); | ||||
|  */ | ||||
| int ast_audiohook_detach_source(struct ast_channel *chan, const char *source); | ||||
|  | ||||
| /*! | ||||
|  * \brief Remove an audiohook from a specified channel | ||||
|  * | ||||
|  * \param chan Channel to remove from | ||||
|  * \param audiohook Audiohook to remove | ||||
|  * | ||||
|  * \return Returns 0 on success, -1 on failure | ||||
|  * | ||||
|  * \note The channel does not need to be locked before calling this function | ||||
|  */ | ||||
| int ast_audiohook_remove(struct ast_channel *chan, struct ast_audiohook *audiohook); | ||||
|  | ||||
| /*! \brief Pass a frame off to be handled by the audiohook core | ||||
|  * \param chan Channel that the list is coming off of | ||||
|  * \param audiohook_list List of audiohooks | ||||
|   | ||||
		Reference in New Issue
	
	Block a user