#include <string>
#include "debug.h"
#include "audio/export.h"
#include "audio/audio_playback.h"
#include "audio/types.h"
#include "lib_common.h"
Go to the source code of this file.
|
| static bool | audio_play_dump_ctl (void *, int request, void *data, size_t *len) |
| |
| static void | audio_play_dump_done (void *state) |
| |
| static void | audio_play_dump_help () |
| |
| static void * | audio_play_dump_init (const char *cfg) |
| |
| static void | audio_play_dump_probe (struct device_info **available_devices, int *count, void(**deleter)(void *)) |
| |
| static void | audio_play_dump_put_frame (void *state, const struct audio_frame *f) |
| |
| static bool | audio_play_dump_reconfigure (void *state, struct audio_desc new_desc) |
| |
| static bool | query_fmt (void *data, size_t *len) |
| |
| | REGISTER_MODULE (dump, &aplay_dump_info, LIBRARY_CLASS_AUDIO_PLAYBACK, AUDIO_PLAYBACK_ABI_VERSION) |
| |
◆ audio_play_dump_ctl()
| static bool audio_play_dump_ctl |
( |
void * | , |
|
|
int | request, |
|
|
void * | data, |
|
|
size_t * | len ) |
|
static |
◆ audio_play_dump_done()
| static void audio_play_dump_done |
( |
void * | state | ) |
|
|
static |
◆ audio_play_dump_help()
| static void audio_play_dump_help |
( |
| ) |
|
|
static |
Definition at line 66 of file dump.cpp.
66 {
67 printf("dump usage:\n"
68 "\t-r dump[:<path>]\n"
69 "where\n"
70 "\tpath - path prefix to use (without .wav extension)\n"
71 "\n");
72}
Referenced by audio_play_dump_init().
◆ audio_play_dump_init()
| static void * audio_play_dump_init |
( |
const char * | cfg | ) |
|
|
static |
◆ audio_play_dump_probe()
| static void audio_play_dump_probe |
( |
struct device_info ** | available_devices, |
|
|
int * | count, |
|
|
void(** | deleter )(void *) ) |
|
static |
Definition at line 97 of file dump.cpp.
98{
100 *available_devices = NULL;
102}
int void(** deleter)(void *))
References count, and deleter.
◆ audio_play_dump_put_frame()
| static void audio_play_dump_put_frame |
( |
void * | state, |
|
|
const struct audio_frame * | f ) |
|
static |
Definition at line 128 of file dump.cpp.
129{
131
133}
void audio_export(struct audio_export *s, const struct audio_frame *frame)
References audio_export(), and state.
◆ audio_play_dump_reconfigure()
| static bool audio_play_dump_reconfigure |
( |
void * | state, |
|
|
struct audio_desc | new_desc ) |
|
static |
Definition at line 135 of file dump.cpp.
136{
139
140 std::string filename = s->filename;
141 if(s->file_name_num){
142 filename += "_" + std::to_string(s->file_name_num);
143 }
144 filename += ".wav";
145 s->file_name_num++;
147
148 return true;
149}
struct audio_export * audio_export_init(const char *filename)
References audio_export_init(), audio_dump_state::desc, and state.
◆ query_fmt()
| static bool query_fmt |
( |
void * | data, |
|
|
size_t * | len ) |
|
static |
◆ REGISTER_MODULE()
◆ aplay_dump_info
Initial value:= {
}
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 bool audio_play_dump_ctl(void *, int request, void *data, size_t *len)
static void audio_play_dump_put_frame(void *state, const struct audio_frame *f)
static void * audio_play_dump_init(const char *cfg)
Definition at line 151 of file dump.cpp.