On Mon, 2010-08-02 at 10:27 +0200, Erik Hofman wrote:
> Alright, the initial version is now pushed to git.
> The idea is the following; you'll have to create a new SGSampleQueue
> class and use the add() function to add samples to the queue:
> 
> SGSampleQueue *queue = new SGSampleQueue( 8000 ); // frequency
> 
> queue->add( buffer1, len1 );
> queue->add( buffer2, len2 );
> queue->play( true ); // play looped
> 
> All samples added to the queue should have the same frequency and
> format. The SGSampleQueue class is derived from the SGSoundSample class
> and reuses most of the code.

Oh, for clarity;
* you will need to add the sample queue to a sample group
* the queue can have a position offset, orientation and an audio cone,
  just like any other sound sample.

Erik


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to