Skip to content

Commit

Permalink
Use my simple command line "wavplay" program instead of sounder.
Browse files Browse the repository at this point in the history
wavplay separately maintained at https://github.com/10yard/wavplay
  • Loading branch information
10yard committed Jun 15, 2022
1 parent 5d1bb06 commit ef1810f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build_version.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set version=v1.0
set version=v1.1

set zip_path="C:\Program Files\7-Zip\7z"
del releases\galakong_plugin_%version%.zip
Expand Down
Binary file removed galakong/bin/sounder.exe
Binary file not shown.
Binary file added galakong/bin/wavplay.exe
Binary file not shown.
10 changes: 6 additions & 4 deletions galakong/init.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- GalaKong: A Galaga Themed Shoot 'Em Up Plugin for Donkey Kong (and Donkey Kong Junior)
-- by Jon Wilson (10yard)
--
-- Tested with latest MAME version 0.240
-- Tested with latest MAME version 0.244
-- Fully compatible with all MAME versions from 0.227
--
-- Jumpman is assisted by an accompanying ship which can take out barrels, fireballs, firefoxes, pies and springs.
Expand All @@ -26,7 +26,7 @@
-----------------------------------------------------------------------------------------
local exports = {}
exports.name = "galakong"
exports.version = "1.0"
exports.version = "1.1"
exports.description = "GalaKong: A Galaga Themed Shoot 'Em Up Plugin for Donkey Kong (and Donkey Kong Junior)"
exports.license = "GNU GPLv3"
exports.author = { name = "Jon Wilson (10yard)" }
Expand Down Expand Up @@ -1084,15 +1084,17 @@ function galakong.startplugin()
if is_pi then
io.popen("aplay -q plugins/galakong/sounds/"..sound..".wav &")
else
io.popen("start /B /HIGH plugins/galakong/bin/sounder.exe /id "..sound.." /stopbyid "..sound.." plugins/galakong/sounds/"..sound..".wav")
--io.popen("start /B /HIGH plugins/galakong/bin/sounder.exe /id "..sound.." /stopbyid "..sound.." plugins/galakong/sounds/"..sound..".wav")
io.popen("start /B /HIGH plugins/galakong/bin/wavplay.exe plugins/galakong/sounds/"..sound..".wav")
end
end

function stop()
if is_pi then
io.popen("pkill aplay &")
else
io.popen("start /B /HIGH plugins/galakong/bin/sounder.exe /stop")
--io.popen("start /B /HIGH plugins/galakong/bin/sounder.exe /stop")
io.popen("start /B /HIGH taskkill /IM wavplay.exe /F 2> nul")
end
end

Expand Down
2 changes: 1 addition & 1 deletion galakong/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"plugin": {
"name": "galakong",
"description": "GalaKong: A Galaga Themed Shoot 'Em Up Plugin for Donkey Kong",
"version": "1.0",
"version": "1.1",
"author": "Jon Wilson (10yard)",
"type": "plugin",
"start": "false"
Expand Down
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# **GalaKong: A Galaga Themed Shoot 'Em Up Plugin for Donkey Kong (and Donkey Kong Junior)** #

Tested with latest MAME version 0.241
Tested with latest MAME version 0.244

Fully compatible with all MAME versions from 0.227

Expand Down Expand Up @@ -41,6 +41,7 @@ or

```mame dkongjr -plugin galakong```


## Feedback

Please send feedback to [email protected]
Expand Down

0 comments on commit ef1810f

Please sign in to comment.