Exemplo n.º 1
0
CEmuopl::~CEmuopl()
{
  OPLDestroy(opl[0]); OPLDestroy(opl[1]);

  delete [] mixbuf0;
  delete [] mixbuf1;
}
Exemplo n.º 2
0
/**
 * Deletes the loaded music content.
 */
AdlibMusic::~AdlibMusic()
{
	if (opl[0])
	{
		stop();
		OPLDestroy(opl[0]);
		opl[0] = 0;
	}
	if (opl[1])
	{
		OPLDestroy(opl[1]);
		opl[1] = 0;
	}
	delete[] _data;
}
Exemplo n.º 3
0
void y8950Destroy(Y8950* y8950) 
{
    mixerUnregisterChannel(y8950->mixer, y8950->handle);
    boardTimerDestroy(y8950->timer1);
    boardTimerDestroy(y8950->timer2);
    OPLDestroy(y8950->opl);

    if (y8950->ykIo != NULL) {
        ykIoDestroy(y8950->ykIo);
    }

    free(y8950);
}
Exemplo n.º 4
0
void AdLibMidiDriver::close() {
	_mixer->stopHandle(_mixerSoundHandle);
	OPLDestroy(_opl);
}
Exemplo n.º 5
0
AdLibMusic::~AdLibMusic() {
	OPLDestroy(_opl);
	_mixer->stopHandle(_soundHandle);
}