函数名:openal_source_stop()
适用版本:PHP 5 >= 5.1.0, PECL openal >= 0.1.0
函数描述:停止一个音频源的播放
用法: openal_source_stop ( resource $source ) : bool
参数:
返回值: 如果成功停止了音频源的播放,则返回true;否则返回false。
示例:
// 创建一个音频源
$source = openal_source_create();
// 设置音频源的参数
openal_source_set($source, AL_LOOPING, AL_FALSE); // 设置循环播放为关闭
openal_source_set($source, AL_GAIN, 0.8); // 设置音量为0.8
// 播放音频源
openal_source_play($source);
// 停止音频源的播放
openal_source_stop($source);
注意事项: