| 
    OpenEnroth 90c43ae
    
   | 
 
#include <SndReader.h>
Public Member Functions | |
| SndReader () | |
| SndReader (std::string_view path) | |
| SndReader (Blob blob) | |
| ~SndReader () | |
| void | open (std::string_view path) | 
| void | open (Blob blob) | 
| void | close () | 
| bool | isOpen () const | 
| bool | exists (std::string_view filename) const | 
| Blob | read (std::string_view filename) const | 
| std::vector< std::string > | ls () const | 
Private Attributes | |
| Blob | _snd | 
| std::unordered_map< std::string, SndEntry > | _files | 
Reader for Might&Magic SND files.
Note that compression is part of the container format in SND files, unlike in LOD, where it's part of the internal lod-specific file formats. Thus, we're not exposing it as part of the interface, and there is no 'SndFormats' library.
      
  | 
  default | 
      
  | 
  explicit | 
      
  | 
  explicit | 
      
  | 
  default | 
| void SndReader::close | ( | ) | 
Closes this SND reader & frees all associated resources.
| bool SndReader::exists | ( | std::string_view | filename | ) | const | 
| filename | Name of the SND file entry. | 
      
  | 
  inline | 
| std::vector< std::string > SndReader::ls | ( | ) | const | 
| void SndReader::open | ( | Blob | blob | ) | 
| blob | SND data. | 
| Exception | If there are errors in the provided SND file. | 
| void SndReader::open | ( | std::string_view | path | ) | 
| path | Path to the SND file to open for reading. | 
| Exception | If the SND couldn't be opened - e.g., if the file doesn't exist, or if it's not in SND format. | 
| Blob SndReader::read | ( | std::string_view | filename | ) | const | 
      
  | 
  private | 
      
  | 
  private |