{-# OPTIONS_GHC -fno-warn-unused-imports #-} #include #include module Bindings.Codec2 where import Foreign.Ptr #strict_import {- struct CODEC2; -} #opaque_t struct CODEC2 #ccall codec2_create , CInt -> IO (Ptr ) #ccall codec2_destroy , Ptr -> IO () #ccall codec2_encode , Ptr -> Ptr CUChar -> Ptr CShort -> IO () #ccall codec2_decode , Ptr -> Ptr CShort -> Ptr CUChar -> IO () #ccall codec2_samples_per_frame , Ptr -> IO CInt #ccall codec2_bits_per_frame , Ptr -> IO CInt #ccall codec2_set_lpc_post_filter , Ptr -> CInt -> CInt -> CFloat -> CFloat -> IO () #ccall codec2_get_spare_bit_index , Ptr -> IO CInt #ccall codec2_rebuild_spare_bit , Ptr -> Ptr CInt -> IO CInt #num CODEC2_MODE_3200 #num CODEC2_MODE_2400 #num CODEC2_MODE_1600 #num CODEC2_MODE_1400 #num CODEC2_MODE_1300 #num CODEC2_MODE_1200