bolar_2 backup
This commit is contained in:
25
main/audio/embedded_prompt_catalog.h
Normal file
25
main/audio/embedded_prompt_catalog.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include "core/playback_types.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
namespace borla {
|
||||
|
||||
struct EmbeddedPromptBlob {
|
||||
const uint8_t* data = nullptr;
|
||||
size_t size = 0;
|
||||
const char* filename = nullptr;
|
||||
};
|
||||
|
||||
class EmbeddedPromptCatalog final {
|
||||
public:
|
||||
static bool Select(
|
||||
LocalPrompt prompt,
|
||||
uint32_t selector,
|
||||
EmbeddedPromptBlob* blob);
|
||||
static size_t Count(LocalPrompt prompt);
|
||||
};
|
||||
|
||||
} // namespace borla
|
||||
Reference in New Issue
Block a user