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/
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/
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
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/
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
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
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
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/
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
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/
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
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/
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 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/
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/
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/
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/
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/
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
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/
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
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
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
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
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/
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/
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
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
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)
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/
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
;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
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/
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
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
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
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
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.
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)
--
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
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/
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/
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
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
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)
--
45 matches
Mail list logo