www.pudn.com > VOIP(H323).rar > EasyG728.h
/*--------------------------------------------------------------------------------* * * * This material is trade secret owned by imtelephone.com * * and is strictly confidential and shall remain as such. * * * * Copyright © 2003-2004 imtelephone.com. All Rights Reserved. No part of * * this material may be reproduced, stored in a retrieval system, or transmitted, * * in any form or by any means, including, but not limited to, photocopying, * * electronic, mechanical, recording, or otherwise, without the prior written * * permission of imtelephone.com. * * * * This material is subject to continuous developments and improvements. All * * warranties implied or expressed, including but not limited to implied * * warranties of merchantability, or fitness for purpose, are excluded. * * * *--------------------------------------------------------------------------------* * * * support@imtelephone.com * * * *--------------------------------------------------------------------------------* * *--------------------------------------------------------------------------------* * EasyG728.h * * ~~~~~~~~~~~~~~~~~~ * *--------------------------------------------------------------------------------* /* EasyG728 API functions prototypes and constants */ #define L_G728_FRAME_COMPRESSED 20 #define L_G728_FRAME 80 #define CODER_HANDLE unsigned long #ifndef _cplusplus #define bool unsigned char #define false 0 #define true !false #endif extern CODER_HANDLE EasyG728_init_encoder(); extern bool EasyG728_encoder(CODER_HANDLE hEncoder, short *speech, unsigned char *bitstream); extern bool EasyG728_release_encoder(CODER_HANDLE hEncoder); extern CODER_HANDLE EasyG728_init_decoder(); extern bool EasyG728_decoder(CODER_HANDLE hDecoder, unsigned char *bitstream, short *synth_short); extern bool EasyG728_release_decoder(CODER_HANDLE hDecoder);