openal_stream

(PECL openal >= 0.1.0)

openal_stream Begin streaming on a source

说锟斤拷

openal_stream ( resource $source , int $format , int $rate ) : resource

锟斤拷锟斤拷

source

An Open AL(Source) resource (previously created by openal_source_create()).

format

Format of data, one of: AL_FORMAT_MONO8, AL_FORMAT_MONO16, AL_FORMAT_STEREO8 锟斤拷 AL_FORMAT_STEREO16

rate

Frequency of data to stream given in Hz.

锟斤拷锟斤拷值

Returns a stream resource on success 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE.

锟轿硷拷

  • openal_source_create() - Generate a source resource
  • fwrite() - 写锟斤拷锟侥硷拷锟斤拷锟缴帮拷全锟斤拷锟节讹拷锟斤拷锟斤拷锟侥硷拷锟斤拷