Page 1 of 1

[ISSUE] sound keyword in 3.1.01 of hewin.exe

Posted: Mon Dec 20, 2004 6:38 pm
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".

Posted: Fri Dec 31, 2004 1:20 pm
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?

Posted: Fri Dec 31, 2004 4:24 pm
by Kent
Oops--that was me.

Posted: Fri Dec 31, 2004 4:56 pm
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.

Posted: Fri Dec 31, 2004 5:03 pm
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.

Posted: Thu Jan 13, 2005 11:52 am
by Hugella
Speaking of bug-tracking, was there ever any resolution to your problem?

Posted: Sun Jan 16, 2005 11:55 am
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

same problem here

Posted: Thu Nov 03, 2005 8:00 pm
by newbie
Yup - same exact problem. As soon as I switched to PlayMusic it worked like a charm. Wonder what the problem is?

oh - forgot

Posted: Thu Nov 03, 2005 8:01 pm
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)