1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-25 11:17:26 +00:00

Simplify namespace syntax.

This commit is contained in:
Thomas Harte
2023-05-10 16:02:18 -05:00
parent 25a245e35c
commit 2b56b7be0d
271 changed files with 291 additions and 1024 deletions
@@ -13,8 +13,7 @@
#include <functional>
#include "LowFrequencyOscillator.hpp"
namespace Yamaha {
namespace OPL {
namespace Yamaha::OPL {
/*!
Models an OPL-style envelope generator.
@@ -258,7 +257,6 @@ template <int envelope_precision, int period_precision> class EnvelopeGenerator
}
};
}
}
#endif /* EnvelopeGenerator_h */
@@ -9,8 +9,7 @@
#ifndef KeyLevelScaler_h
#define KeyLevelScaler_h
namespace Yamaha {
namespace OPL {
namespace Yamaha::OPL {
template <int frequency_precision> class KeyLevelScaler {
public:
@@ -51,8 +50,6 @@ template <int frequency_precision> class KeyLevelScaler {
int shift_ = 0;
};
}
}
#endif /* KeyLevelScaler_h */
@@ -11,8 +11,7 @@
#include "../../../Numeric/LFSR.hpp"
namespace Yamaha {
namespace OPL {
namespace Yamaha::OPL {
/*!
Models the output of the OPL low-frequency oscillator, which provides a couple of optional fixed-frequency
@@ -62,7 +61,6 @@ class LowFrequencyOscillator {
Numeric::LFSR<int, 0x800302> noise_source_;
};
}
}
#endif /* LowFrequencyOscillator_hpp */
+1 -3
View File
@@ -12,8 +12,7 @@
#include "../../../Outputs/Speaker/Implementation/SampleSource.hpp"
#include "../../../Concurrency/AsyncTaskQueue.hpp"
namespace Yamaha {
namespace OPL {
namespace Yamaha::OPL {
template <typename Child> class OPLBase: public ::Outputs::Speaker::SampleSource {
public:
@@ -34,7 +33,6 @@ template <typename Child> class OPLBase: public ::Outputs::Speaker::SampleSource
uint8_t selected_register_ = 0;
};
}
}
#endif /* OPLBase_h */
@@ -13,8 +13,7 @@
#include "LowFrequencyOscillator.hpp"
#include "Tables.hpp"
namespace Yamaha {
namespace OPL {
namespace Yamaha::OPL {
/*!
Models an OPL-style phase generator of templated precision; having been told its period ('f-num'), octave ('block') and
@@ -119,7 +118,6 @@ template <int precision> class PhaseGenerator {
int enable_vibrato_ = 0;
};
}
}
#endif /* PhaseGenerator_h */
+1 -3
View File
@@ -9,8 +9,7 @@
#ifndef Tables_hpp
#define Tables_hpp
namespace Yamaha {
namespace OPL {
namespace Yamaha::OPL {
/*
These are the OPL's built-in log-sin and exponentiation tables, as recovered by
@@ -221,7 +220,6 @@ inline int LogSign::level(int fractional) const {
return power_two(*this, fractional);
}
}
}
#endif /* Tables_hpp */
@@ -12,8 +12,7 @@
#include "Tables.hpp"
#include "LowFrequencyOscillator.hpp"
namespace Yamaha {
namespace OPL {
namespace Yamaha::OPL {
enum class Waveform {
Sine, HalfSine, AbsSine, PulseSine
@@ -86,7 +85,6 @@ template <int phase_precision> class WaveformGenerator {
}
};
}
}
#endif /* WaveformGenerator_h */
+1 -3
View File
@@ -18,8 +18,7 @@
#include <atomic>
namespace Yamaha {
namespace OPL {
namespace Yamaha::OPL {
class OPLL: public OPLBase<OPLL> {
public:
@@ -125,7 +124,6 @@ class OPLL: public OPLBase<OPLL> {
const uint8_t *instrument_definition(int instrument, int channel);
};
}
}
#endif /* OPLL_hpp */