53 struct Export_state_deleter{
59 std::unique_ptr<struct audio_export, Export_state_deleter>
exporter;
67 printf(
"dump usage:\n"
68 "\t-r dump[:<path>]\n"
70 "\tpath - path prefix to use (without .wav extension)\n"
77 if (strlen(cfg) > 0) {
78 if (strcmp(cfg,
"help") == 0) {
100 *available_devices = NULL;
140 std::string filename = s->filename;
141 if(s->file_name_num){
142 filename +=
"_" + std::to_string(s->file_name_num);
int void(** deleter)(void *))
struct audio_export * audio_export_init(const char *filename)
void audio_export_destroy(struct audio_export *s)
void audio_export(struct audio_export *s, const struct audio_frame *frame)
This file contains definition of some common audio types.
#define AUDIO_PLAYBACK_CTL_QUERY_FORMAT
#define AUDIO_PLAYBACK_ABI_VERSION
static void audio_play_dump_done(void *state)
static bool audio_play_dump_reconfigure(void *state, struct audio_desc new_desc)
static void audio_play_dump_probe(struct device_info **available_devices, int *count, void(**deleter)(void *))
static const struct audio_playback_info aplay_dump_info
static bool audio_play_dump_ctl(void *, int request, void *data, size_t *len)
static void audio_play_dump_help()
static void audio_play_dump_put_frame(void *state, const struct audio_frame *f)
static void * audio_play_dump_init(const char *cfg)
static bool query_fmt(void *data, size_t *len)
@ LIBRARY_CLASS_AUDIO_PLAYBACK
#define REGISTER_MODULE(name, info, lclass, abi)
Registers module to global modules' registry.
std::unique_ptr< struct audio_export, Export_state_deleter > exporter
struct used to comunicate with audio capture/playback device