Mercurial > audlegacy-plugins
view src/console/Ym2413_Emu.cxx @ 3053:a3734dd60d7a
Change the flow of codec probing to avoid the possibility of a null pointer dereference. From code analysis, unique IDs mPqomY & 8B8oHC.
author | Tony Vroon <chainsaw@gentoo.org> |
---|---|
date | Sat, 18 Apr 2009 21:28:56 +0100 |
parents | 986f098da058 |
children |
line wrap: on
line source
// Use in place of Ym2413_Emu.cpp and ym2413.c to disable support for this chip // Game_Music_Emu 0.5.2. http://www.slack.net/~ant/ #include "Ym2413_Emu.h" Ym2413_Emu::Ym2413_Emu() { } Ym2413_Emu::~Ym2413_Emu() { } int Ym2413_Emu::set_rate( double, double ) { return 2; } void Ym2413_Emu::reset() { } void Ym2413_Emu::write( int, int ) { } void Ym2413_Emu::mute_voices( int ) { } void Ym2413_Emu::run( int, sample_t* ) { }