Re: SndStreamCreate

2008-03-05 Thread Edward Jones
If you the WAV file you want to play is less than 64Kb then you can use 
SndPlayResource which is very simple to use. I use this method in my 
ordering application and when the sound I want to play is greater than 
64Kb I just chop it up into smaller chunks.


Here is the code I have written to do it (in Pascal but you should be 
able to see the similarities for C/C++ use):


procedure PlayWav;
var
  Error :err;
  WAVHandle :MemHandle;
  WAVPtr :MemPtr;
begin
  //1001 = resource to play
  WAVHandle :=DmGetResource(RSC('WAVE'),1001);
  WAVPtr :=MemHandleLock(WAVHandle);

  //play sound at full voume (32000)
  Error :=SndPlayResource(WAVPtr,32000,sndFlagSync);
  MemHandleUnlock(WAVHandle);
  DmReleaseResource(WAVHandle);
end;

//don't forget to declare the resource you want play:
resource
  DATA 1001 'WAVE' IN 'ordernotsent.wav';

Hope this helps!

Regards


Edward Jones


Kelly Leal wrote:

Hi!

I want to play a wav file (I'm using Tungsten E2), but I get "fatal 
exception" when I call SndStreamStart. Before, I make a call to 
SndStreamCreate and I get no errors, but I think that I'm doing 
something wrong when calling SndStreamCreate.


Here is my code:

err = SndStreamCreate(&mainStream, sndOutput, 44100, sndInt16Little, 
sndStereo, sndStreamBufferCallback,

 (void *)&byteArray, AUDIO_BUFF_SIZE, false);

I'm not really sure about sndStreamBufferCallback. Maybe the problem is 
here... I think that I got a little confused with its parameters! Does 
anybody have an example that works to show me?


Thanks in advance!

Kelly



--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Launching error during debug?

2008-03-05 Thread karthik
hi i am having following error during debug my application, this error arise 
after launching simulator then it doesn't run the application, the error pop up 
window is,

Launching(Error: Target request failed: Errors occurred during the load 
process. Run aborted..)

i am using garnet development suit IDE, windows xp, the problem is occurred 
during second time i am running the application after enter into IDE please 
help for me..
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


RE: establish bluetooth connection

2008-03-05 Thread Karthik Jaganathan



> From: [EMAIL PROTECTED]
> To: palm-dev-forum@news.palmos.com
> Subject: re: establish bluetooth connection
> Date: Wed, 5 Mar 2008 07:27:32 -0800
> 
> Karthik Jaganathan wrote:
> 
> > Hi everybody, i dont know the settings procedure to establish
> > bluetooth connection, from my simulator to pc
> 
> The Palm Simulator does not support Bluetooth. You will have to do on-device 
> debugging, hooking a Bluetooth-capable Palm OS device to your PC running your 
> debugger. It worked for me with a T3 and CodeWarrior under XP.
> 
> 
> Luc Le Blanc
> -- 
> For information on using the ACCESS Developer Forums, or to unsubscribe, 
> please see http://www.access-company.com/developers/forums/


how to do on-device debugging, and how to hook bluetooth capable palm os device 
to my pc,  sorry i am new to palm os, i am using garnet os development suit 
IDE, and windows xp, cygwin tools please help for me.

_
Tried the new MSN Messenger? It’s cool! Download now.
http://messenger.msn.com/Download/Default.aspx?mkt=en-in
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Re: Bluetooth Serial Connections

2008-03-05 Thread Shorin

Good suggestion... I'm very familiar with those apps. I ought to look at
the source code and hope its not really tough. I know there are many
other open source BT palm apps out there too...

I am really wondering if there's a special "secret" to doing this that
someone here knows right off the top of their head. I noticed that the
ACCESS Palm OS documentation is a little out of date, and following
their methods it apparently doesn't work. I haven't checked the palmdev
documentation specific for my phone yet. Aiee... its tough to find time
to even work on this anymore...argh.

Henk Jonas wrote:
check the source code of LJP or ZDoomZ for an example how create a 
serial BT connection (ZDoomZ has client and server side).


Shorin wrote:

Hi,

I'm relatively new to Palm OS Programming (but not programming in
general). I can't seem to get the serial port open with the Bluetooth
Connection panel serial port. The VirtRfComm doesn't work either, but I
know that needs some extra settings passed to SrmOpenEx to open. I've
been trying this with SrmOpen and SrmOpenBackground. Those functions
keep failing with something like 0x03EA or something like that. This
used to make my phone go into a reset loop until i deleted the program.
I think i had other bad files that were causing that, though.

So anyways, whats the REAL way to open a bluetooth serial connection?

Thanks,

Shorin

-
--abcdefg 
Sent by my computer haha.









--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: Bluetooth Serial Connections

2008-03-05 Thread Shorin
Good suggestion... I'm very familiar with those apps. I ought to look at 
the source code and hope its not really tough. I know there are many 
other open source BT palm apps out there too...


I am really wondering if there's a special "secret" to doing this that 
someone here knows right off the top of their head. I noticed that the 
ACCESS Palm OS documentation is a little out of date, and following 
their methods it apparently doesn't work. I haven't checked the palmdev 
documentation specific for my phone yet. Aiee... its tough to find time 
to even work on this anymore...argh.


Henk Jonas wrote:
check the source code of LJP or ZDoomZ for an example how create a 
serial BT connection (ZDoomZ has client and server side).


Shorin wrote:

Hi,

I'm relatively new to Palm OS Programming (but not programming in
general). I can't seem to get the serial port open with the Bluetooth
Connection panel serial port. The VirtRfComm doesn't work either, but I
know that needs some extra settings passed to SrmOpenEx to open. I've
been trying this with SrmOpen and SrmOpenBackground. Those functions
keep failing with something like 0x03EA or something like that. This
used to make my phone go into a reset loop until i deleted the program.
I think i had other bad files that were causing that, though.

So anyways, whats the REAL way to open a bluetooth serial connection?

Thanks,

Shorin

-
--abcdefg 
Sent by my computer haha.








--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: Bluetooth Serial Connections

2008-03-05 Thread Henk Jonas
check the source code of LJP or ZDoomZ for an example how create a 
serial BT connection (ZDoomZ has client and server side).


Shorin wrote:

Hi,

I'm relatively new to Palm OS Programming (but not programming in
general). I can't seem to get the serial port open with the Bluetooth
Connection panel serial port. The VirtRfComm doesn't work either, but I
know that needs some extra settings passed to SrmOpenEx to open. I've
been trying this with SrmOpen and SrmOpenBackground. Those functions
keep failing with something like 0x03EA or something like that. This
used to make my phone go into a reset loop until i deleted the program.
I think i had other bad files that were causing that, though.

So anyways, whats the REAL way to open a bluetooth serial connection?

Thanks,

Shorin

-
--abcdefg 
Sent by my computer haha.






--
-
  Henk Jonas[EMAIL PROTECTED]
  Palm OS ® certified developer

  Please contact me, if you need an off-site contract worker.
-

--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


SndStreamCreate

2008-03-05 Thread Kelly Leal

Hi!

I want to play a wav file (I'm using Tungsten E2), but I get "fatal 
exception" when I call SndStreamStart. Before, I make a call to 
SndStreamCreate and I get no errors, but I think that I'm doing something 
wrong when calling SndStreamCreate.


Here is my code:

err = SndStreamCreate(&mainStream, sndOutput, 44100, sndInt16Little, 
sndStereo, sndStreamBufferCallback,

 (void *)&byteArray, AUDIO_BUFF_SIZE, false);

I'm not really sure about sndStreamBufferCallback. Maybe the problem is 
here... I think that I got a little confused with its parameters! Does 
anybody have an example that works to show me?


Thanks in advance!

Kelly 



--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


re: establish bluetooth connection

2008-03-05 Thread Luc Le Blanc
Karthik Jaganathan wrote:

> Hi everybody, i dont know the settings procedure to establish
> bluetooth connection, from my simulator to pc

The Palm Simulator does not support Bluetooth. You will have to do on-device 
debugging, hooking a Bluetooth-capable Palm OS device to your PC running your 
debugger. It worked for me with a T3 and CodeWarrior under XP.


Luc Le Blanc
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/