coastline 0.0.4
Loading...
Searching...
No Matches
coastline::N64MixerContext Class Reference

Mixer channels, XM storage, and synchronisation for one SDL audio session. More...

#include <music.h>

Public Member Functions

 N64MixerContext ()
 Register the sole mixer context.
 ~N64MixerContext ()
 Unregister the mixer after all audio players and locks have been destroyed.
 N64MixerContext (const N64MixerContext &)=delete
 Prevent copying the registered mixer and its synchronisation resources.
N64MixerContext & operator= (const N64MixerContext &)=delete
 Prevent assignment of the registered mixer and its synchronisation resources.

Detailed Description

Mixer channels, XM storage, and synchronisation for one SDL audio session.

Constructor & Destructor Documentation

◆ N64MixerContext() [1/2]

coastline::N64MixerContext::N64MixerContext ( )

Register the sole mixer context.

Another context must not already be active.

Exceptions
std::runtime_errorIf mutex creation or context registration fails.

◆ ~N64MixerContext()

coastline::N64MixerContext::~N64MixerContext ( )

Unregister the mixer after all audio players and locks have been destroyed.

◆ N64MixerContext() [2/2]

coastline::N64MixerContext::N64MixerContext ( const N64MixerContext & )
delete

Prevent copying the registered mixer and its synchronisation resources.

Member Function Documentation

◆ operator=()

N64MixerContext & coastline::N64MixerContext::operator= ( const N64MixerContext & )
delete

Prevent assignment of the registered mixer and its synchronisation resources.


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