[ISSUE] sound keyword in 3.1.01 of hewin.exe

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

Cryptonomic
Posts: 55
Joined: Wed May 05, 2004 4:35 am
Location: Chicago, IL
Contact:

[ISSUE] sound keyword in 3.1.01 of hewin.exe

Post by Cryptonomic »

I want to make sure I am not going crazy or doing something wrong. (Both of which are equally possible.)

I am noticing that I cannot get the "sound" keyword to work in one version of the Windows version of the Hugo Engine, but I can in another. More specifically, I am finding that the "sound" keyword does work in versions of hewin.exe that have the following information in the Help -> About:

Hugo Engine v3.1 - Win32 build (Aug 7 2004)

However, I find that I cannot get sounds to play via the "sound" keyword in versions of hewin.exe that have the following information in the Help -> About:

Hugo Engine v3.1.01 - Win32 build (Sep 18 2004)

When I say I cannot "get it to work", I mean that sounds will not play at all. Note, however, that the "music" and "video" keywords work just fine, in terms of music or videos being played. So this appears to be limited to just the use of "sound".

Guest

Post by Guest »

Sorry for taking so long to follow up on this--out of town on top-secret government business over Christmas and all.

Anyway, I can't seem to replicate what you're seeing. The Sep. 18 build of the engine is what ships with the CD-ROM of Future Boy!, for instance, and it seems to work fine.

Can you give me any more details on how your resources are set up, etc.? Is there any chance that you have two copies of your .hex file, in different directories?

Kent
Posts: 119
Joined: Fri Jun 27, 2003 12:10 pm

Post by Kent »

Oops--that was me.

Cryptonomic
Posts: 55
Joined: Wed May 05, 2004 4:35 am
Location: Chicago, IL
Contact:

Post by Cryptonomic »

Let me double-check everything.

Essentially, what I did was just double-check the stuff I had written in my tutorial; making sure everything compiled. When I got to the sound part, I realized that sound was not playing on my desktop machine but it was on my laptop. The only difference was the two builds of the engine.

That said, I am not noticing a problem with pre-existing games. I am sure there is not a duplicate .hex file around but that does not rule out that I was just doing something else odd. I will double-check.

Cryptonomic
Posts: 55
Joined: Wed May 05, 2004 4:35 am
Location: Chicago, IL
Contact:

Post by Cryptonomic »

Hmm. As I look, I wonder if my problem is not with the compiler rather than the engine. The compiler on my one machine is v3.1 and I am finding that if I compile the examples with the sound keywords, it works with both engine builds.

However, if I compile with the compiler that is designated v3.1.01, then I get the problem where the sound is not playing. Again, however, only if the sound was specified via the sound keyword. Resources specified by the music keyword are working.

Maybe this is just some funky thing with my setup.

Hugella
Posts: 73
Joined: Mon Jun 28, 2004 4:45 pm
Location: Minneapolis, Minnesota

Post by Hugella »

Speaking of bug-tracking, was there ever any resolution to your problem?

Cryptonomic
Posts: 55
Joined: Wed May 05, 2004 4:35 am
Location: Chicago, IL
Contact:

Post by Cryptonomic »

Hugella wrote:Speaking of bug-tracking, was there ever any resolution to your problem?
Sorry for the delayed response on this.

It looks like the issue was most likely with me. I am not sure what happened, yet. The obvious idea would be that I had the sound files placed incorrectly or the resource routine written incorrectly. That does not seem to be the case. So I am a bit at a loss to see what was happening.

Currently I cannot reproduce the problem at all so I have to believe the problem was with something I was doing since the functionality clearly works.

- Jeff

newbie

same problem here

Post by newbie »

Yup - same exact problem. As soon as I switched to PlayMusic it worked like a charm. Wonder what the problem is?

newbie

oh - forgot

Post by newbie »

By the way, debuging stepwise revealed that there was a DirectSound error. I am very new to programming with Windows, so I have no idea what that means (other than there is probably a sound driver compatibility problem)

Post Reply