#ifndef _inthread__hpp__included__ #define _inthread__hpp__included__ #include #include #include void voicethread_task(); void voicethread_kill(); void voice_frame_number(uint64_t newframe, double rate); enum external_stream_format { EXTFMT_OPUSDEMO, EXTFMT_SOX, EXTFMT_OGGOPUS }; struct playback_stream_info { uint64_t id; uint64_t base; uint64_t length; }; bool voicesub_collection_loaded(); std::list voicesub_get_stream_info(); void voicesub_play_stream(uint64_t id); void voicesub_export_stream(uint64_t id, const std::string& filename, external_stream_format fmt); uint64_t voicesub_import_stream(uint64_t ts, const std::string& filename, external_stream_format fmt); void voicesub_delete_stream(uint64_t id); void voicesub_export_superstream(const std::string& filename); void voicesub_load_collection(const std::string& filename); void voicesub_unload_collection(); void voicesub_alter_timebase(uint64_t id, uint64_t ts); uint64_t voicesub_parse_timebase(const std::string& n); double voicesub_ts_seconds(uint64_t ts); #endif