libnedit
Lightweight C++ library for Nintendo DS(i) formats
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ntr::fmt::SBNK Struct Reference
Inheritance diagram for ntr::fmt::SBNK:
ntr::fs::FileFormat

Classes

struct  DataSection
 
struct  DrumSet
 
struct  DrumSetHeader
 
struct  HeadedInstrumentData
 
struct  Header
 
struct  InstrumentData
 
struct  InstrumentRecord
 
struct  InstrumentRecordHeader
 
struct  KeySplit
 
struct  KeySplitHeader
 
struct  SimpleInstrument
 

Public Types

enum class  InstrumentType : u8 {
  Invalid = 0 , Pcm = 1 , Psg = 2 , Noise = 3 ,
  DirectPcm = 4 , Null = 5 , DrumSet = 16 , KeySplit = 17
}
 

Public Member Functions

 SBNK (const SBNK &)=delete
 
Result ValidateImpl (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle, const fs::FileCompression comp) override
 
Result ReadImpl (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle, const fs::FileCompression comp) override
 
Result WriteImpl (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle, const fs::FileCompression comp) override
 
- Public Member Functions inherited from ntr::fs::FileFormat
Result Validate (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle, const fs::FileCompression comp=fs::FileCompression::None)
 
Result ReadFrom (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle, const fs::FileCompression comp=fs::FileCompression::None)
 
Result ReadCompressedFrom (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle)
 
Result WriteTo (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle)
 
Result WriteTo (std::shared_ptr< fs::FileHandle > file_handle)
 

Static Public Member Functions

static constexpr bool IsSimpleInstrument (const InstrumentType type)
 

Public Attributes

Header header
 
DataSection data
 
std::vector< InstrumentRecordinstruments
 
- Public Attributes inherited from ntr::fs::FileFormat
std::string read_path
 
std::shared_ptr< fs::FileHandleread_file_handle
 
std::string write_path
 
std::shared_ptr< fs::FileHandlewrite_file_handle
 
fs::FileCompression comp
 

Member Function Documentation

◆ ReadImpl()

Result ntr::fmt::SBNK::ReadImpl ( const std::string & path,
std::shared_ptr< fs::FileHandle > file_handle,
const fs::FileCompression comp )
overridevirtual

Implements ntr::fs::FileFormat.

◆ ValidateImpl()

Result ntr::fmt::SBNK::ValidateImpl ( const std::string & path,
std::shared_ptr< fs::FileHandle > file_handle,
const fs::FileCompression comp )
overridevirtual

Implements ntr::fs::FileFormat.

◆ WriteImpl()

Result ntr::fmt::SBNK::WriteImpl ( const std::string & path,
std::shared_ptr< fs::FileHandle > file_handle,
const fs::FileCompression comp )
inlineoverridevirtual

Implements ntr::fs::FileFormat.


The documentation for this struct was generated from the following files: