MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / assertPaInitialization

Method assertPaInitialization

Audio/PortAudioPlayer.cpp:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29bool PortAudioPlayer::initialized = false;
30
31bool
32PortAudioPlayer::assertPaInitialization(void)
33{
34 if (!initialized) {
35 PaError err = Pa_Initialize();
36 initialized = err == paNoError;
37
38 if (initialized)
39 atexit(PortAudioPlayer::paFinalizer);
40 }
41
42 return initialized;
43}
44
45void
46PortAudioPlayer::paFinalizer(void)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected