Update to v106r55 release.

byuu says:

Everything *should* be working again, but of course that won't
actually be the case. Here's where things stand:

  - bsnes, higan, icarus, and genius compile and run fine on FreeBSD
    with GTK
  - ruby video and audio drivers are untested on Windows, macOS, and
    Linux
  - hiro is untested on macOS
  - bsnes' status bar is not showing up properly with hiro/qt
  - bsnes and higan's about screen is not showing up properly with
    hiro/qt (1x1 window size)
  - bsnes on Windows crashes often when saving states, and I'm not sure
    why ... it happens inside Encode::RLE
  - bsnes on Windows crashes with ruby.input.windows (unsure why)
  - bsnes on Windows fails to show the verified emblem on the status bar
    properly
  - hiro on Windows flickers when changing tabs

To build the Windows bsnes and higan ports, use

    ruby="video.gdi audio.directsound"

Compilation error logs for Linux will help me fix the inevitable list of
typos there. I can fix the typos on other platforms, I just haven't
gotten to it yet.
This commit is contained in:
Tim Allen
2018-08-05 19:00:15 +10:00
parent 552d385031
commit 5da4532771
117 changed files with 1316 additions and 2383 deletions

View File

@@ -1,24 +1,29 @@
#include <ao/ao.h>
struct AudioAO : Audio {
AudioAO() { initialize(); }
struct AudioAO : AudioDriver {
AudioAO& self = *this;
AudioAO(Audio& super) : AudioDriver(super) {}
~AudioAO() { terminate(); }
auto create() -> bool override {
super.setChannels(2);
super.setFrequency(48000);
return initialize();
}
auto driver() -> string override { return "libao"; }
auto ready() -> bool override { return _ready; }
auto hasFrequencies() -> bool override { return true; }
auto availableFrequencies() -> vector<double> override {
return {44100.0, 48000.0, 96000.0};
auto hasChannels() -> vector<uint> override {
return {2};
}
auto setFrequency(double frequency) -> bool override {
if(frequency == Audio::frequency()) return true;
if(!Audio::setFrequency(frequency)) return false;
return initialize();
auto hasFrequencies() -> vector<uint> override {
return {44100, 48000, 96000};
}
auto setFrequency(uint frequency) -> bool override { return initialize(); }
auto output(const double samples[]) -> void override {
uint32_t sample = 0;
sample |= (uint16_t)sclamp<16>(samples[0] * 32767.0) << 0;
@@ -38,7 +43,7 @@ private:
ao_sample_format format;
format.bits = 16;
format.channels = 2;
format.rate = (uint)_frequency;
format.rate = self.frequency;
format.byte_format = AO_FMT_LITTLE;
format.matrix = nullptr;