HaikuArchives / LightsOff

Lights Off! is a rendition of the original handheld game "Lights Out!", manufactured by Tiger Electronics.
MIT License
2 stars 3 forks source link

Sound doesn't work #51

Open humdingerb opened 6 years ago

humdingerb commented 6 years ago

When started via double-click, there's no sound output at all. If started from Terminal, I hear a clicking noise (not the intended "click" sound... :) ), and get output like:

mixout 0, inByteCount 4096, decin 2187, BufferSize 3367
mixout 1180, inByteCount 2916, decin 3367, BufferSize 3367
BMediaTrack::ReadFrames: decoder returned error 0xffffffff (General system error)
mixout 1180, inByteCount 2916, decin 0, BufferSize 0
owenca commented 6 years ago

I had the same problem before and chose to ignore it for the time being because it's literally bells and whistles. :)

When started via double-click, there's no sound output at all.

This is because the sound files are not in the same folder as the executable. I have improved the sound loading code to address #52.

owenca commented 6 years ago

If started from Terminal, I hear a clicking noise (not the intended "click" sound... :) ), and get output like:

It seems to be a problem on the side of the BFileGameSound class.