Thanks Jagat..
                     Will look into that...

Jagat Nibas Mahapatra wrote:

In palm os knowledgebase there is a sample streaming code… I modified that code to work for myself. Please use that

 

Regards

Jagat


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Sruthi
Sent: Wednesday, February 07, 2007 10:31 AM
To: Palm Developer Forum
Subject: Re: Playing Sound file

 

hi Jagat,,
              I too got stuck with this issue. could u please share a code segement on how to create a sound stream using this function so that i can playback as well as stop a wav file.

Thanks in advance ,,
Sruthi

Jagat Nibas Mahapatra wrote:

That’s not possible, if you want to play the resource asynchronously, i.e there is no way to stop once started by SndPlayResource function.

You can use SndStreamCreate [sound stream programming] to achieve this

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Anoop
Sent: Tuesday, February 06, 2007 8:01 PM
To: Palm Developer Forum
Subject: Re: Playing Sound file

 

hi Michal,
               I tried playing the wav file using SndPlayResource. Now i need to know how to stop playing this. Like after exiting the application the file should stop playing.

Michal Seliga wrote:

AFAIK any wav file can be played, important it that it must be in PCM encoding.
in my application i used 44khz 16bit stereo and 22khz 16bit mono without any
problem (but it was tested only on t5, t|x and treo650)
 
Floriano Scioscia wrote:
  
Hi,
 
it's quite a long time now since I implemented wav file playing in my
application, but I remember that your wav file must have the right
encoding and bitrate parameters.
 
After many experiments I had found that 8-bit, 16 kHz, mono
(single-channel) wav files with PCM encoding can be played correctly
with SndPlayResource.
 
I hope this will help.
 
Best wishes
Floriano
 
 
 
Anoop ha scritto:
    
Hi all,,
        Am trying to load a wav file into my application through
resource editor. After creating a new  sound am getting an xml editor
with the name of the wave file. This file is hving zero bytes of data.
Now what should i do to get a audio file added to the application.
Should i try loading manually a sound file with the same name into the
resource folder. I tried working on that, but the file doesnt play..
Have a look at the following code segment.
 
SndPtr soundP;
              MemHandle recordH;
                             recordH = DmGet1Resource(sysResTSound,1000);
              soundP = (SndPtr) MemHandleLock(recordH);
              SndPlayResource(soundP,1024,sndFlagSync); // 1024 is 0dB
              // (unity) gain
              MemHandleUnlock(recordH);
 
      
 
  


--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/


--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/


--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/


--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/



Reply via email to