> > is there a way to get rid of the first segment only' limitation
> > of Palm Sound API ?
> > 
> > In fact i have a lot of code that can be called by the callback
> > function and i cannot put everything in the first segment

we use streaming audio - and, our code is not even in the 
first segment; or, any of the main executable code chunks.
we put it in a seperate resource - and, if need it be > 64k
(why?) we can always reconstruct it in feature memory.

    // create the sound stream
    deviceP->streaming.armH = DmGetResource('armc', 1000);
    if (deviceP->streaming.armH)
    {
      SndStreamCreate(&deviceP->streaming.stream, sndOutput,
                      44100, sndInt16Little, sndStereo,
                      (void *)MemHandleLock(deviceP->streaming.armH),
                      deviceP->streaming.globals, 1024, true);
  
      // start the stream (will play nothing right now)
      SndStreamSetVolume(deviceP->streaming.stream, 16384);
      SndStreamStart(deviceP->streaming.stream);
    }

dont know where you have this 'first segment' issue from :)
i dunno *g*

---
Aaron Ardiri
[EMAIL PROTECTED]
http://www.mobilewizardry.com/members/aaron_ardiri.php [profile]

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

Reply via email to