Pulsar  3d3a057
bfsar_group.h
Go to the documentation of this file.
1 /**
2  * @file
3  * @brief Sound archive group table access
4  */
5 #pragma once
6 
7 #include <pulsar/bfsar/bfsar.h>
8 #include <pulsar/bfgrp/bfgrp.h>
9 
10 /// Sound archive group information
11 typedef struct {
12  u32 fileIndex; ///< Index in the file table (see plsrBFSARFileGet())
13 
14  bool hasStringIndex;
15  u32 stringIndex; ///< Name index in the string table, populated if `hasStringIndex` is `true` (see plsrBFSARStringGet())
17 
18 /// Fetch group information from the specified index in the group table
19 PLSR_RC plsrBFSARGroupGet(const PLSR_BFSAR* bfsar, u32 index, PLSR_BFSARGroupInfo* out);
20 
21 /// Open a group file from a plsrBFSARGroupGet() result (see plsrBFGRPOpenInside())
22 PLSR_RC plsrBFSARGroupOpen(const PLSR_BFSAR* bfsar, const PLSR_BFSARGroupInfo* groupInfo, PLSR_BFGRP* out);
23 
24 NX_INLINE u32 plsrBFSARGroupCount(const PLSR_BFSAR* bfsar) {
25  return bfsar->groupTable.info.count;
26 }
Sound archive file.
Definition: bfsar.h:34
Group file.
Definition: bfgrp.h:17
u32 count
Table entry/block count.
Definition: archive.h:41
Sound archive init.
PLSR_ArchiveTableInfo info
Cached table information.
Definition: archive.h:47
Group init.
PLSR_RC plsrBFSARGroupGet(const PLSR_BFSAR *bfsar, u32 index, PLSR_BFSARGroupInfo *out)
Fetch group information from the specified index in the group table.
u32 stringIndex
Name index in the string table, populated if hasStringIndex is true (see plsrBFSARStringGet()) ...
Definition: bfsar_group.h:15
u32 PLSR_RC
Result code returned by Pulsar functions.
Definition: types.h:73
PLSR_RC plsrBFSARGroupOpen(const PLSR_BFSAR *bfsar, const PLSR_BFSARGroupInfo *groupInfo, PLSR_BFGRP *out)
Open a group file from a plsrBFSARGroupGet() result (see plsrBFGRPOpenInside())
Sound archive group information.
Definition: bfsar_group.h:11
u32 fileIndex
Index in the file table (see plsrBFSARFileGet())
Definition: bfsar_group.h:12