nomlib
Loading...
Searching...
No Matches
nom::audio::SoundFileReader Class Reference
Inheritance diagram for nom::audio::SoundFileReader:
[legend]

Public Member Functions

virtual bool valid () const override
virtual bool open (const std::string &filename, SoundInfo &info) override
virtual int64 read (void *data, uint32 channel_format, int64 frames) override
virtual int64 seek (int64 offset, int dir) override
virtual void close () override
int byte_rate (SNDFILE_tag *fp)

Private Member Functions

SoundInfo parse_header (SF_INFO &metadata)

Static Private Member Functions

static NOM_EXPORT const char * parse_tags (SNDFILE_tag *fp, uint32 sound_tag)

Private Attributes

SNDFILE_tag * fp_
 A third-party file descriptor whose owned by the end-user.

Detailed Description

Definition at line 50 of file SoundFileReader.hpp.

Member Function Documentation

◆ close()

virtual void nom::audio::SoundFileReader::close ( )
overridevirtual

◆ open()

virtual bool nom::audio::SoundFileReader::open ( const std::string & filename,
SoundInfo & info )
overridevirtual

◆ read()

virtual int64 nom::audio::SoundFileReader::read ( void * data,
uint32 channel_format,
int64 frames )
overridevirtual

◆ seek()

virtual int64 nom::audio::SoundFileReader::seek ( int64 offset,
int dir )
overridevirtual
Parameters
offsetThe cursor offset position, depicted in audio frames.

Implements nom::audio::ISoundFileReader.

◆ valid()

virtual bool nom::audio::SoundFileReader::valid ( ) const
overridevirtual

Member Data Documentation

◆ fp_

SNDFILE_tag* nom::audio::SoundFileReader::fp_
private

A third-party file descriptor whose owned by the end-user.

See also
libsndfile

Definition at line 80 of file SoundFileReader.hpp.


The documentation for this class was generated from the following file: