VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
makVrv::DtMeafSource Class Reference

Loads a .meaf (MAK Encrypted Audio Format) file as a makAudio::DtSource.

Registered with makAudio::DtAudioManager for the "meaf" extension during vrvAudio plugin initialization.

Inheritance diagram for makVrv::DtMeafSource:
Inheritance graph
[legend]

Public Member Functions

 DtMeafSource (const DtFilename &filename, bool forceMono=false, ALCcontext *context=nullptr)
 
virtual ~DtMeafSource ()
 
virtual bool load ()
 
virtual bool unLoad ()
 
virtual void reset ()
 
virtual void finishedBuffer (unsigned int bufferId)
 
virtual makAudio::DtAudioBuffer * nextBuffer (unsigned int &nextBufferIndex)
 

Private Attributes

bool myForceMono
 

Constructor & Destructor Documentation

makVrv::DtMeafSource::DtMeafSource ( const DtFilename &  filename,
bool  forceMono = false,
ALCcontext *  context = nullptr 
)
explicit

CTOR.

Parameters
filenamePath to the .meaf file to load.
forceMonoWhen true, stereo files are downmixed to mono so that OpenAL can spatialize them as 3D positional sources.
virtual makVrv::DtMeafSource::~DtMeafSource ( )
virtual

DTOR.

Member Function Documentation

virtual bool makVrv::DtMeafSource::load ( )
virtual

Decode the .meaf file and upload PCM data to the OpenAL context.

Returns
true on success; false if the file cannot be opened or parsed.
virtual bool makVrv::DtMeafSource::unLoad ( )
virtual

Release all audio buffers.

Returns
true on success.
virtual void makVrv::DtMeafSource::reset ( )
virtual

NOOP.

virtual void makVrv::DtMeafSource::finishedBuffer ( unsigned int  bufferId)
virtual

NOOP.

virtual makAudio::DtAudioBuffer* makVrv::DtMeafSource::nextBuffer ( unsigned int &  nextBufferIndex)
virtual

Returns the next audio buffer at nextBufferIndex, then increments it.

Parameters
nextBufferIndexIndex into the internal buffer list; incremented on return.
Returns
Pointer to the next DtAudioBuffer, or nullptr when exhausted.

Member Data Documentation

bool makVrv::DtMeafSource::myForceMono
private

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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)