mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
Moved old NukedOPL to own namespace
This fixes linking issues on non-MSVC targets and improves code navigation
This commit is contained in:
parent
15138c38ca
commit
114e56b334
2 changed files with 11 additions and 1 deletions
|
@ -62,6 +62,9 @@
|
|||
// Envelope generator
|
||||
//
|
||||
|
||||
namespace OPL3
|
||||
{
|
||||
|
||||
typedef Bit16s(*envelope_sinfunc)(Bit16u phase, Bit16u envelope);
|
||||
typedef void(*envelope_genfunc)(opl_slot *slott);
|
||||
|
||||
|
@ -1017,6 +1020,8 @@ NukedOPL3::NukedOPL3(bool stereo) {
|
|||
Reset();
|
||||
}
|
||||
|
||||
} // namespace OPL3
|
||||
|
||||
OPLEmul *NukedOPL3Create(bool stereo) {
|
||||
return new NukedOPL3(stereo);
|
||||
return new OPL3::NukedOPL3(stereo);
|
||||
}
|
||||
|
|
|
@ -32,6 +32,9 @@
|
|||
#include "opl.h"
|
||||
#include "musicblock.h"
|
||||
|
||||
namespace OPL3
|
||||
{
|
||||
|
||||
typedef uintptr_t Bitu;
|
||||
typedef intptr_t Bits;
|
||||
typedef uint32_t Bit32u;
|
||||
|
@ -233,3 +236,5 @@ public:
|
|||
|
||||
NukedOPL3(bool stereo);
|
||||
};
|
||||
|
||||
} // namespace OPL3
|
||||
|
|
Loading…
Reference in a new issue