mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-03 12:52:55 +02:00
Update to v106r81 release.
byuu says: First 32 instructions implemented in the TLCS900H disassembler. Only 992 to go! I removed the use of anonymous namespaces in nall. It was something I rarely used, because it rarely did what I wanted. I updated all nested namespaces to use C++17-style namespace Foo::Bar {} syntax instead of classic C++-style namespace Foo { namespace Bar {}}. I updated ruby::Video::acquire() to return a struct, so we can use C++17 structured bindings. Long term, I want to get away from all functions that take references for output only. Even though C++ botched structured bindings by not allowing you to bind to existing variables, it's even worse to have function calls that take arguments by reference and then write to them. From the caller side, you can't tell the value is being written, nor that the value passed in doesn't matter, which is terrible.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
namespace nall { namespace DSP {
|
||||
namespace nall::DSP {
|
||||
|
||||
}}
|
||||
}
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
//transposed direct form II biquadratic second-order IIR filter
|
||||
|
||||
namespace nall { namespace DSP { namespace IIR {
|
||||
namespace nall::DSP::IIR {
|
||||
|
||||
struct Biquad {
|
||||
enum class Type : uint {
|
||||
@@ -154,4 +154,4 @@ auto Biquad::butterworth(uint order, uint phase) -> double {
|
||||
return -0.5 / cos(Math::Pi * (phase + order + 0.5) / order);
|
||||
}
|
||||
|
||||
}}}
|
||||
}
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
//DC offset removal IIR filter
|
||||
|
||||
namespace nall { namespace DSP { namespace IIR {
|
||||
namespace nall::DSP::IIR {
|
||||
|
||||
struct DCRemoval {
|
||||
inline auto reset() -> void;
|
||||
@@ -26,4 +26,4 @@ auto DCRemoval::process(double in) -> double {
|
||||
return x;
|
||||
}
|
||||
|
||||
}}}
|
||||
}
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
//one-pole first-order IIR filter
|
||||
|
||||
namespace nall { namespace DSP { namespace IIR {
|
||||
namespace nall::DSP::IIR {
|
||||
|
||||
struct OnePole {
|
||||
enum class Type : uint {
|
||||
@@ -43,4 +43,4 @@ auto OnePole::process(double in) -> double {
|
||||
return z1 = in * a0 + z1 * b1;
|
||||
}
|
||||
|
||||
}}}
|
||||
}
|
||||
|
@@ -3,7 +3,7 @@
|
||||
#include <nall/queue.hpp>
|
||||
#include <nall/dsp/dsp.hpp>
|
||||
|
||||
namespace nall { namespace DSP { namespace Resampler {
|
||||
namespace nall::DSP::Resampler {
|
||||
|
||||
struct Cubic {
|
||||
inline auto reset(double inputFrequency, double outputFrequency = 0, uint queueSize = 0) -> void;
|
||||
@@ -67,4 +67,4 @@ auto Cubic::write(double sample) -> void {
|
||||
mu -= 1.0;
|
||||
}
|
||||
|
||||
}}}
|
||||
}
|
||||
|
Reference in New Issue
Block a user