penUpEvent sent to wrong object

2004-05-26 Thread Robert Scott
prevent this unintended action? Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: penUpEvent sent to wrong object

2004-05-26 Thread Robert Scott
be suppressed. Then I re-enable the action by setting IgnorePenUp=0 upon receipt of a nilEvent. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: SndStreamStart/Stop for recording bug?

2004-06-07 Thread Robert Scott
sound. Finally, the hangups seemed to go away. Now, the hangups are coming back, as my application is growing more complex. I have posted about this before and have not found a work-around. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on u

Re: SndStreamStart/Stop for recording bug?

2004-06-07 Thread Robert Scott
hem in an ultra-simple demo program. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: MemPtrNew versus MemHandleNew

2004-06-08 Thread Robert Scott
y. You will have to lock it before each access and unlock it after. The benefit is that this memory can be moved by the operating system to make larger blocks available. If your application is not short on memory, then this benefit may be of little use, and not worth the bother of all the locks an

Re: Sound Stream Callback frequency

2003-12-27 Thread Robert Scott
7;t think works anyway. If your audio buffer computations are taking too long, you can put them in PNO code, but not in the callback. Put the PNO code in the event processing for nilEvent that handshakes with the flags set by the callback. Robert Scott, Ypsilanti, MI (reply through this forum, not by e

Re: CPMLibGenerateRandomBytes?

2004-01-02 Thread Robert Scott
to tap in some window with the stylus. Use the X and Y coordinates of the penDown events, together with the time of each event to gather some random seed. The use any good hash to reduce the number of bits to what you need. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me

Re: Manipulating Microphone

2004-01-03 Thread Robert Scott
block (callback). I leave the data in sndInt16Little endian format because I process it all with a PNO ARMlet. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Hang-up at AppStop?

2004-01-07 Thread Robert Scott
e failure rate goes to zero. Does anyone have any ideas as to where the 2% hangup probability is coming from? I am running on a Tungsten T2 (Palm OS5). Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or

Sound app hangs (was: Hang-up at AppStop)

2004-01-07 Thread Robert Scott
th the particular Tungsten unit that I have here? Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: sound question

2004-01-08 Thread Robert Scott
k some of the current samples to future samples before they are used in the formula, such as: sample[i+400] = sample[i+400] * 0.8 + sample[i] * 0.2; Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to

What's the harm in this?

2004-01-09 Thread Robert Scott
to trouble. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: What's the harm in this?

2004-01-10 Thread Robert Scott
that after researching the matter more fully. Apparently it is more like Microsoft Windows than I thought. Thanks. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Sound bug?

2004-01-13 Thread Robert Scott
sound input applications that would care to comment on this phenomenon? Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Sound bug?

2004-01-14 Thread Robert Scott
ate an ARM sound callback. Do you have one? Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Have a way to identificy a unique palm device?

2004-01-20 Thread Robert Scott
stolen software serves some benefit by advertizing the product. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: double problem

2004-01-21 Thread Robert Scott
tly, then I would expect the %10.7f format version of this number to be 81.600. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: FrmGetActiveForm Question

2004-01-21 Thread Robert Scott
In what specific context do you wish you could call FrmGetActiveForm(), but can't? Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: FrmGetActiveForm Question

2004-01-21 Thread Robert Scott
aying. I know that I am receiving the notification, and I can get the >active window, but I can't get the active form. Oh, I see. You are responding to launch codes other than sysAppLaunchCmdNormalLaunch, so your app is not even the active app. You want to find out about active forms on

Re: Cannot change application name

2004-01-22 Thread Robert Scott
t;Palm OS 68K Target tab of project setting as before. > >Can anybody tell me any tricks to do so? >Thank. Edit your main .H include file and change: #define appName "Address" You also may need to change the "About" form in your .RCP file. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: How can *this* be faster than *this*?

2004-01-31 Thread Robert Scott
still use a shift rather than a general multiply to do the array lookup. Also, if the OP is benchmarking on a PalmOS 5 device, remember that all these 68K intructions get interpreted by the ARM processor. Who knows what that does to the comparative speed of operations? A multiply vs. a lookup is a s

Re: sndstreamcreate usage???

2004-02-01 Thread Robert Scott
p = Mbufptrs.bufOrigin; Mbufptrs.bufCurrent = p; } } In this way, the callback does minimal processing, and leaves all the heavy lifting to the event handler. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information

Re: sndstreamcreate usage???

2004-02-01 Thread Robert Scott
e yet, does it run specifically on the Tungsten T >simulator or some other simulator??? Actually, I have never tried it on a simulator. I use a Tungsten T2 actual device for all my code development. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- Fo

Bug in Sound Manager

2004-02-02 Thread Robert Scott
this is something fundamental in PalmOS5, or is it just in the Tungsten T2 implementation? Thanks in advance for help in verifying this problem. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer For

Re: Beat counter on a palm?

2004-02-02 Thread Robert Scott
will be surprised how hard it is to count spikes reliably. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Bug in Sound Manager

2004-02-03 Thread Robert Scott
r trying. But I am really interested in having it tested on a real device. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Bug in Sound Manager

2004-02-04 Thread Robert Scott
cket PC and got them to confirm my complaint to Dell. I guess it would be nice if someone else could independently write some sound input software and verify that these Palm devices have a small but definite probability of hanging on SndStreamDelete() when the sound stream is "input". Ro

Re: sndstreamcreate usage???

2004-02-04 Thread Robert Scott
of the nilEvent processing, you watch for changes in bufCurrent and process the filled buffers accorinding. Make sure to allow for the possibility that several buffers may have been filled when you handle the nilEvent. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing

Re: sndstreamcreate usage on simulator???

2004-02-05 Thread Robert Scott
but is >immediately followed by INVALID READ FROM >FFD2..even after using MemHandleNew function. Before you can copy to the memory, you must lock it. Use MemPtrNew instead of MemHandleNew. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly)

Re: Possible compiler bug in CW 9.2

2004-02-07 Thread Robert Scott
ompiler is assuming that the struct takes up four bytes when combined in arrays of structs, but that is not a bug. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: endian formats with fixed point math

2004-02-10 Thread Robert Scott
make any assumptions about byte order. It it is written in C and does not use any casts, like (char*)(&int32value), then it should word regardless of the endian format. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on us

Re: my error or a POSE bug?

2004-02-15 Thread Robert Scott
;t know what anonymous global objects are.. When strings like "a" and "b" are mentioned in C, then are created just like a global object of the form: static char NoName[] = "a"; Then the address of NoName is used in the array of string pointers that you defined. Robe

Re: MemPtrFree problem

2004-02-16 Thread Robert Scott
n. Go straight from StartApplication to StopApplication and see if you still get the bus error. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Round...

2004-02-17 Thread Robert Scott
3,123.46 (ignoring the decimals places beyond the 2nd) Caution: (int)(x + 0.5) only rounds properly if x is positive. For negative values of x, use (int)(x - 0.5) Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Fo

Re: Mutual exclusion

2004-02-18 Thread Robert Scott
put pointer falls one complete cycle behind the output pointer). But the design of buffer size and number of buffers makes that unlikely. And if it does happen, nothing crashes. Just one cycle of buffers is skipped and everything then continues normally. Robert Scott, Ypsilanti, MI (reply thr

Re: Sony Clie Error Message

2004-02-26 Thread Robert Scott
Thanks to everyone for your quick answers. I will break the news to my would-be customer that his Clie is just too old for sampled sound. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to

Sony Clie Error Message

2004-02-26 Thread Robert Scott
checks in my program for minimal OS version 5.0 and for the existance of Mathlib, but if any of these checks fail, I produce a much clearer error message. Can anyone advise me on how to interpret this error message? Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly

Re: Palm Development General Question

2004-03-31 Thread Robert Scott
C++ as a better C because of the stronger type checking that goes on. That is, your source files will have .CPP extensions, but the code will look just list a C program. Besides better type checking, you will be able to declare automatic variables anywhere, not just at the beginning of a block.

Re: sampled sound

2004-04-08 Thread Robert Scott
7;t try concatenating little PCM files to make a longer note. The phase coherence will be off at the boundaries where you joined the smaller samples, and you will hear a definite "tick" at each boundary. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) --

Re: sampled sound

2004-04-09 Thread Robert Scott
there. Where you put the binary point depends on your need for frequency resolution and range. For example, if phase is . and if your sample rate is 11025 samples per second, then you can express frequencies as high as nearly 11025 Hz with a resolution of 0.168 Hz. Offset is

Arbitrary binary data as resource database?

2004-04-12 Thread Robert Scott
alent of an ordinary file with no record structure imposed on it? Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: SndStreamCreateExtended error sndErrNotImpl // function not implemented

2004-04-13 Thread Robert Scott
record the same in this regard. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Arbitrary binary data as resource database?

2004-04-13 Thread Robert Scott
rogramming Bible" until way at the end under "Odds and Ends". I wouldn't have thought that something so mainstream would appear in that chapter. Now I know better. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on usi

Re: Bug in Sound Manager (Tungsten)

2004-04-13 Thread Robert Scott
vent a hangup does not happen in doze mode. Anyway, I thought I would revive the topic to see if anyone else is working on sound input applications for the Tungsten and may have observed this hangup. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For i

Re: SndStreamCreate

2004-04-19 Thread Robert Scott
ake sure that your sound-generation software is fast enough to keep up. If it falls behind in the callback then the system may find itself at the end of a buffer without any new buffer ready to continue the sound. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) --