Skip to content

Commit

Permalink
4.6.6.0 Suppressed F/W dialog at startup. And add the "-chip_server" …
Browse files Browse the repository at this point in the history
…option to enable RPC server feature to control MAmidiMEmo chips from other applications.
  • Loading branch information
110-kenichi committed Mar 25, 2023
1 parent d295b10 commit 7be257d
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 9 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MAmidiMEmo 4.6.5.8 Itoken (c)2019, 2020, 2021, 2022, 2023 / GPL-2.0
MAmidiMEmo 4.6.6.0 Itoken (c)2019, 2020, 2021, 2022, 2023 / GPL-2.0

*** What is the MAmidiMEmo? ***

Expand Down Expand Up @@ -268,6 +268,7 @@ e.g.) YM2151 has 8ch FM sounds, so you can play 8 chords on MIDI 1ch or sharing
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SNQ9JE3JAQMNQ)

*** Changes ***
4.6.6.0 Suppressed F/W dialog at startup. And add the "-chip_server" option to enable RPC server feature to control MAmidiMEmo chips from other applications.
4.6.5.8 Supported OKI MSM6258 for VGMPlayer. OKI MSM6258 can be sounded by OPNA/OPN2 DAC
4.6.5.7 Improved performance of G.I.M.I.C .
4.6.5.6 Supported OPN3-L for proxy of OPNA
Expand Down
Binary file modified docs/MAmidiMEmo/Manual.pdf
Binary file not shown.
Binary file modified docs/MAmidiMEmo/Manual.pptx
Binary file not shown.
3 changes: 2 additions & 1 deletion src/emu/emuopts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,9 @@ const options_entry emu_options::s_option_entries[] =
{ OPTION_HTTP_PORT, "8080", OPTION_INTEGER, "HTTP server port" },
*/
//mamidimemo OPTION_HTTP_PORT
{ OPTION_HTTP_PORT, "0", OPTION_INTEGER, "HTTP server port" },
{ OPTION_HTTP_PORT, "0", OPTION_INTEGER, "HTTP server port" },
{ OPTION_HTTP_ROOT, "web", OPTION_STRING, "HTTP server document root" },
{ OPTION_CHIP_SERVER, "0", OPTION_BOOLEAN, "Enable accessing chips from other process" },

{ nullptr }
};
Expand Down
5 changes: 5 additions & 0 deletions src/emu/emuopts.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@
#define OPTION_HTTP_PORT "http_port"
#define OPTION_HTTP_ROOT "http_root"

#define OPTION_CHIP_SERVER "chip_server"

//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
Expand Down Expand Up @@ -475,6 +477,9 @@ class emu_options : public core_options
short http_port() const { return int_value(OPTION_HTTP_PORT); }
const char *http_root() const { return value(OPTION_HTTP_ROOT); }

//mamidimemo OPTION_HTTP_PORT
bool chip_server() const { return bool_value(OPTION_CHIP_SERVER); }

// slots and devices - the values for these are stored outside of the core_options
// structure
const ::slot_option &slot_option(const std::string &device_name) const;
Expand Down
15 changes: 9 additions & 6 deletions src/emu/machine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -562,14 +562,17 @@ int running_machine::run(bool quiet)
sdr->set_stream_update_callback(StreamUpdatedR);
}
else {
m_rpcSrv = new rpc::server(30000);
if (vstPort = options().chip_server())
{
m_rpcSrv = new rpc::server(30000);

m_rpcSrv->bind("DirectAccessToChip", [&](unsigned char device_id, unsigned char unit, unsigned int address, unsigned int data)
{
DirectAccessToChip(device_id, unit, address, data);
});
m_rpcSrv->bind("DirectAccessToChip", [&](unsigned char device_id, unsigned char unit, unsigned int address, unsigned int data)
{
DirectAccessToChip(device_id, unit, address, data);
});

m_rpcSrv->async_run();
m_rpcSrv->async_run();
}
}

// run the CPUs until a reset or exit
Expand Down
2 changes: 1 addition & 1 deletion src/mamidimemo/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static class Program
/// <summary>
///
/// </summary>
public const string FILE_VERSION = "4.6.5.7";
public const string FILE_VERSION = "4.6.6.0";

public const string FILE_COPYRIGHT = @"Virtual chiptune sound MIDI module ""MAmidiMEmo"" Version {0}
Copyright(C) 2019, 2023 Itoken.All rights reserved.";
Expand Down

0 comments on commit 7be257d

Please sign in to comment.