This site is no longer active and is available for archival purposes only. Registration and login is disabled.

GapiDraw 3.01 Palm OS 5 Sound Bug?


GapiDraw 3.01 Palm OS 5 Sound Bug?

Postby mlepage » Jun 13, 2004 @ 6:05pm

We have an outstanding bug involving OS 5 streaming sound, that I have narrowed down to GapiDraw. We'd appreciate if this could be investigated ASAP (and fixed if necessary) as we are otherwise ready to release a new game.

Here are two sample applications that demonstrate the bug:




Both are built using 3.01b, but the problem was present in 3.01 also.

Both do exactly the same thing: they play a loop of sampled PCM sound using SndStreamCreate and related functions. The only difference is that MusicTest is created without GapiDraw using CodeWarrior's wizard, and MinimalMusicTest is created using GapiDraw's Minimal sample.

Both applications play the sound loop on OS 5 streaming sound devices. The bug involves power off (either manual or auto), and only occurs on some devices.

On Tungsten T3 and Zire 72, if you power off, then when you power on, the sound may be garbled, and when you subsequently exit, you may receive an error.

This only occurs with MinimalMusicTest; MusicTest is fine.

This does not occur on other devices. For example, Tungsten E and Zire 71 are fine. There is no problem with power off even in the Minimal version.

Something in GapiDraw is triggering this bug, making it impossible to create even a minimal GapiDraw application with OS 5 streaming sound. It's not GapiVFS, because neither application uses it. It may be related to the way 3.01 enables auto power off (it didn't originally).

I can't easily debug this without the source code to GapiDraw. Johan (or anyone), please confirm this problem on your Tungsten T3 or Zire 72. Here are the projects for debugging:




The test code added to each is identical and is marked with TESTCODE.
www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby mlepage » Jun 14, 2004 @ 5:07pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Mikael » Jun 16, 2004 @ 11:43am

After som testing I have found what seems to be the problem. It apperars that an event is not sent to the system when the device is started again after a poweroff. You can fix this yourself by adding the case

event.data.keyDown.chr == vchrLateWakeup

to the if statement in the keyDown case on line 271 in GapiApplication.cpp.
Mikael
pm Member
 
Posts: 12
Joined: May 3, 2004 @ 4:46pm


Postby mlepage » Jun 16, 2004 @ 7:09pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum