mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-15 14:09:35 +00:00
d3b9ba17da
* [Audio 4/?] Build Samplebanks, match Audiotable * Fix some makefile formatting * Add missing scope in MARK chunk handling * Add comment to generate asm file when buffer bug data is emitted, remove duplicate CC4 definition * Adjust comment * SBCFLAGS * Remove unnecessary comments on notes_lut * Split build directories creation command into several to avoid it becoming too long * objcopy -j -> --only-section * Fix mkdir warning when extracted/VERSION/assets doesn't exist
36 lines
809 B
C
36 lines
809 B
C
/**
|
|
* SPDX-FileCopyrightText: Copyright (C) 2024 ZeldaRET
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
#ifndef SAMPLEBANK_H_
|
|
#define SAMPLEBANK_H_
|
|
|
|
#include "xml.h"
|
|
|
|
typedef struct {
|
|
const char *name;
|
|
int index;
|
|
const char *medium;
|
|
const char *cache_policy;
|
|
bool buffer_bug;
|
|
|
|
size_t num_samples;
|
|
const char **sample_paths;
|
|
const char **sample_names;
|
|
bool *is_sample;
|
|
|
|
size_t num_pointers;
|
|
int *pointer_indices;
|
|
} samplebank;
|
|
|
|
const char *
|
|
samplebank_path_forname(samplebank *sb, const char *name);
|
|
|
|
void
|
|
read_samplebank_xml(samplebank *sb, xmlDocPtr doc);
|
|
|
|
#endif
|