Audio support in hugo-unix, homebrew tap for macOS

This is a discussion / support forum for the Hugo programming language by Kent Tessman. Hugo is a powerful programming language for making text games / interactive fiction with multimedia support.

Hugo download links: https://www.generalcoffee.com/hugo
Roody Yogurt's Hugo Blog: https://notdeadhugo.blogspot.com
The Hugor interpreter by RealNC: http://ifwiki.org/index.php/Hugor

Moderators: Ice Cream Jonsey, joltcountry

User avatar
RealNC
Posts: 2244
Joined: Wed Mar 07, 2012 4:32 am

Audio support in hugo-unix, homebrew tap for macOS

Post by RealNC »

I just added full audio support to the CLI interpreter of hugo-unix. If frotz has it, we should to!

It uses the same audio engine as Hugor, so all music and sound formats Hugo games can have are supported. It's disabled by default though, because building it requires development libraries to be available on the system. To make things easier to Mac users, I made hugo-unix installable using homebrew. All you need to do is add the hugo tap with:

Code: Select all

brew tap realnc/hugo
Then you can install hugo-unix with:

Code: Select all

brew install hugo-unix
It will download, build and install everything automatically, just like any other homebrew package. In a default homebrew setup, you should be able to run "hc", "hd" and "he" from anywhere, since /usr/local/bin is already in the system PATH in macOS. Note that the package is called "hugo-unix", not "hugo". There's already a package in homebrew called "hugo" (which is completely unrelated.)

If you don't have homebrew installed, you should. It's awesome. And dead-easy to install. All you need to do is open a terminal (normal user, NOT root) and paste this command in it:

Code: Select all

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Confirm the prompts. For more info, see https://brew.sh.

User avatar
RealNC
Posts: 2244
Joined: Wed Mar 07, 2012 4:32 am

Re: Audio support in hugo-unix, homebrew tap for macOS

Post by RealNC »

Forgot to mention that when installing with homebrew, you get the audio-enabled version of the "he" terp. (Was kind of the whole point, to spare people from having to install the needed sound libraries by hand.)

Post Reply