2012-09-23 19:16:30 +03:00
|
|
|
#ifndef _inthread__hpp__included__
|
|
|
|
#define _inthread__hpp__included__
|
|
|
|
|
|
|
|
#include <list>
|
|
|
|
#include <cstdint>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
void voicethread_task();
|
2012-11-23 02:27:06 +02:00
|
|
|
void voicethread_kill();
|
2012-09-23 19:16:30 +03:00
|
|
|
void voice_frame_number(uint64_t newframe, double rate);
|
|
|
|
|
2012-11-23 03:03:42 +02:00
|
|
|
enum external_stream_format
|
|
|
|
{
|
|
|
|
EXTFMT_OPUSDEMO,
|
|
|
|
EXTFMT_SOX,
|
2012-11-23 03:11:01 +02:00
|
|
|
EXTFMT_OGGOPUS
|
2012-11-23 03:03:42 +02:00
|
|
|
};
|
|
|
|
|
2012-09-23 19:16:30 +03:00
|
|
|
struct playback_stream_info
|
|
|
|
{
|
|
|
|
uint64_t id;
|
|
|
|
uint64_t base;
|
|
|
|
uint64_t length;
|
|
|
|
};
|
|
|
|
|
|
|
|
bool voicesub_collection_loaded();
|
|
|
|
std::list<playback_stream_info> voicesub_get_stream_info();
|
|
|
|
void voicesub_play_stream(uint64_t id);
|
2012-11-23 03:03:42 +02:00
|
|
|
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);
|
2012-09-23 19:16:30 +03:00
|
|
|
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
|