al_get_audio_stream_fragment man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

al_get_audio_stream_fragment(3)		       al_get_audio_stream_fragment(3)

NAME
       al_get_audio_stream_fragment - Allegro 5 API

SYNOPSIS
	      #include <allegro5/allegro_audio.h>

	      void *al_get_audio_stream_fragment(const ALLEGRO_AUDIO_STREAM *stream)

DESCRIPTION
       When  using  Allegro's  audio  streaming, you will use this function to
       continuously provide new sample data to a stream.

       If the stream is ready for new  data,  the  function  will  return  the
       address of an internal buffer to be filled with audio data.  The length
       and format of the buffer are specified  with  al_create_audio_stream(3)
       or  can be queried with the various functions described here.  Once the
       buffer is filled, you must signal this to Allegro by passing the buffer
       to al_set_audio_stream_fragment(3).

       If the stream is not ready for new data, the function will return NULL.

	      Note:  If	 you  listen  to  events  from	the  stream,  an ALLE‐
	      GRO_EVENT_AUDIO_STREAM_FRAGMENT event will be generated whenever
	      a	 new  fragment	is  ready.  However, getting an event is not a
	      guarantee that al_get_audio_stream_fragment(3) will  not	return
	      NULL, so you still must check for it.

SEE ALSO
       al_set_audio_stream_fragment(3),	  al_get_audio_stream_event_source(3),
       al_get_audio_stream_frequency(3),      al_get_audio_stream_channels(3),
       al_get_audio_stream_depth(3), al_get_audio_stream_length(3)

Allegro reference manual		       al_get_audio_stream_fragment(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net