Skip to content
Snippets Groups Projects
Select Git revision
  • 02077a8caed12d662a268f15604f5a38f5f6b05c
  • devel default
  • fix_crash_in_dtls_srtp_stop_timeout_timer
  • asterisk_rdkb
  • fix_transport_config
  • wenpeng-1021
  • fix_crash_at_transport
  • transport-destroy-crash_pjproject
  • fix_transports_init
  • lk_debug_dialogs
  • lk_forking_revert
  • wenpeng-jul8
  • gyang-devel
  • gyang-devel1
  • wenpeng-jul9
  • asterisk_rdkb_ipv6
  • 16916_rdkb_merge
  • lk_disable_registrar
  • wenpeng-100rel-ippbx
  • fix_multiple_dns_lookup
  • dev_fxs_no_wb
  • fix_fallback
  • 22.0.0-pre1
  • 21.4.2
  • 20.9.2
  • 18.24.2
  • certified-20.7-cert2
  • certified-18.9-cert11
  • 21.4.1
  • 20.9.1
  • 18.24.1
  • 21.4.0
  • 20.9.0
  • 18.24.0
  • certified-20.7-cert1
  • certified-18.9-cert10
  • 21.4.0-rc1
  • 20.9.0-rc1
  • 18.24.0-rc1
  • 21.3.1
  • 20.8.1
  • 18.23.1
42 results

ael_main.c

Blame
  • ex_codec2.h 685 B
    /*! \file
     * \brief 8-bit raw data
     *
     * Copyright (C) 2016, Alexander Traud
     *
     * Distributed under the terms of the GNU General Public License
     *
     */
    
    #include "asterisk/format_cache.h"      /* for ast_format_codec2    */
    #include "asterisk/frame.h"             /* for ast_frame, etc       */
    
    static uint8_t ex_codec2[] = {
    	0xea, 0xca, 0x14, 0x85, 0x91, 0x78,
    };
    
    static struct ast_frame *codec2_sample(void)
    {
    	static struct ast_frame f = {
    		.frametype = AST_FRAME_VOICE,
    		.datalen = sizeof(ex_codec2),
    		.samples = CODEC2_SAMPLES,
    		.mallocd = 0,
    		.offset = 0,
    		.src = __PRETTY_FUNCTION__,
    		.data.ptr = ex_codec2,
    	};
    
    	f.subclass.format = ast_format_codec2;
    
    	return &f;
    }