Pulsar  3d3a057
Data Structures | Enumerations | Functions
bfsar_file.h File Reference

Sound archive file table access. More...

#include <pulsar/bfsar/bfsar.h>

Go to the source code of this file.

Data Structures

struct  PLSR_BFSARFileInfoExternal
 Sound archive external file location. More...
 
struct  PLSR_BFSARFileInfoInternal
 Sound archive internal file location. More...
 
struct  PLSR_BFSARFileInfo
 Sound archive file information. More...
 

Enumerations

enum  PLSR_BFSARFileInfoType {
  PLSR_BFSARFileInfoType_Unknown = 0,
  PLSR_BFSARFileInfoType_Internal = 0x220c,
  PLSR_BFSARFileInfoType_External = 0x220d
}
 Sound archive file type. More...
 

Functions

PLSR_RC plsrBFSARFileGet (const PLSR_BFSAR *bfsar, u32 index, PLSR_BFSARFileInfo *out)
 Fetch file information from the specified index in the file table.
 
PLSR_RC plsrBFSARFileScan (const PLSR_BFSAR *bfsar, u32 index, PLSR_BFSARFileInfo *out)
 Similar to plsrBFSARFileGet(), but also scans groups for the requested index in case file is internal and has an invalid location.
 
PLSR_RC plsrBFSARFileInfoNormalize (const PLSR_BFSAR *bfsar, PLSR_BFSARFileInfo *soundFileInfo)
 Make sound file information less archive dependent (eg: external path become absolute)
 
NX_INLINE u32 plsrBFSARFileCount (const PLSR_BFSAR *bfsar)
 

Detailed Description

Sound archive file table access.

Enumeration Type Documentation

◆ PLSR_BFSARFileInfoType

Sound archive file type.

Enumerator
PLSR_BFSARFileInfoType_Unknown 

Unknown.

PLSR_BFSARFileInfoType_Internal 

Sub-file is embedded in the sound archive.

Note
Can be embedded directly in the FILE section, or in one of the sound archive groups
PLSR_BFSARFileInfoType_External 

Sub-file is external to the archive and referenced by path.