1 #ifndef EDJE_SND_CONVERT_H__ 2 # define EDJE_SND_CONVERT_H__ 3 #include "edje_private.h" 4 5 #ifdef HAVE_LIBSNDFILE 6 #include <sndfile.h> 7 8 #define SF_CONTAINER(x) ((x) & SF_FORMAT_TYPEMASK) 9 #define SF_CODEC(x) ((x) & SF_FORMAT_SUBMASK) 10 11 typedef struct _Edje_Sound_Encode Edje_Sound_Encode; 12 13 struct _Edje_Sound_Encode /*Encoding information*/ 14 { 15 const char *file; /* the encode sound file path */ 16 Eina_Bool encoded; /* True if encoding is successful else False */ 17 char *comp_type; /* either LOSSLESS (FLAC) or LOSSY (Ogg/Vorbis) Compression */ 18 }; 19 20 Edje_Sound_Encode *_edje_multisense_encode(const char* filename, Edje_Sound_Sample *sample, double quality); 21 const char *_edje_multisense_encode_to_flac(char *snd_path, SF_INFO sfinfo); 22 const char *_edje_multisense_encode_to_ogg_vorbis(char *snd_path, double quality, SF_INFO sfinfo); 23 24 #endif 25 #endif 26