91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 3.38MB
    文件類型: .7z
    金幣: 1
    下載: 0 次
    發布日期: 2023-10-22
  • 語言: 其他
  • 標簽: FMOD??sdk??2017??

資源簡介

由于被墻了,在fmod官網貌似下載不了,找了很久才找到的一個版本;lib文件夾列表如下: 2017-10-13 17:35 . 2017-10-13 17:35 .. 2017-09-20 06:30 1,516,544 fmod.dll 2017-09-20 06:30 1,750,016 fmod64.dll 2017-09-20 06:30 345,192 fmod64_vc.lib 2017-09-20 06:30 1,694,720 fmodL.dll 2017-09-20 06:30 1,953,280 fmodL64.dll 2017-09-20 06:30 347,062 fmodL64_vc.lib 2017-09-20 06:30 356,066 fmodL_vc.lib 2017-09-20 06:30 354,230 fmod_vc.lib 2017-09-20 06:30 347,644 libfmod.a 2017-09-20 06:30 353,034 libfmodL.a

資源截圖

代碼片段和文件信息

/*==============================================================================
3D?Example
Copyright?(c)?Firelight?Technologies?Pty?Ltd?2004-2017.

This?example?shows?how?to?basic?3D?positioning?of?sounds.
==============================================================================*/
#include?“fmod.hpp“
#include?“common.h“

const?int???INTERFACE_UPDATETIME?=?50;??????//?50ms?update?for?interface
const?float?DISTANCEFACTOR?=?1.0f;??????????//?Units?per?meter.??I.e?feet?would?=?3.28.??centimeters?would?=?100.

int?FMOD_Main()
{
????FMOD::System????*system;
????FMOD::Sound?????*sound1?*sound2?*sound3;
????FMOD::Channel???*channel1?=?0?*channel2?=?0?*channel3?=?0;
????FMOD_RESULT??????result;
????bool?????????????listenerflag?=?true;
????FMOD_VECTOR??????listenerpos??=?{?0.0f?0.0f?-1.0f?*?DISTANCEFACTOR?};
????unsigned?int?????version;
????void????????????*extradriverdata?=?0;

????Common_Init(&extradriverdata);

????/*
????????Create?a?System?object?and?initialize.
????*/
????result?=?FMOD::System_Create(&system);
????ERRCHECK(result);
????
????result?=?system->getVersion(&version);
????ERRCHECK(result);

????if?(version?????{
????????Common_Fatal(“FMOD?lib?version?%08x?doesn‘t?match?header?version?%08x“?version?FMOD_VERSION);
????}
????
????result?=?system->init(100?FMOD_INIT_NORMAL?extradriverdata);
????ERRCHECK(result);
????
????/*
????????Set?the?distance?units.?(meters/feet?etc).
????*/
????result?=?system->set3DSettings(1.0?DISTANCEFACTOR?1.0f);
????ERRCHECK(result);

????/*
????????Load?some?sounds
????*/
????result?=?system->createSound(Common_MediaPath(“drumloop.wav“)?FMOD_3D?0?&sound1);
????ERRCHECK(result);
????result?=?sound1->set3DMinMaxDistance(0.5f?*?DISTANCEFACTOR?5000.0f?*?DISTANCEFACTOR);
????ERRCHECK(result);
????result?=?sound1->setMode(FMOD_LOOP_NORMAL);
????ERRCHECK(result);

????result?=?system->createSound(Common_MediaPath(“jaguar.wav“)?FMOD_3D?0?&sound2);
????ERRCHECK(result);
????result?=?sound2->set3DMinMaxDistance(0.5f?*?DISTANCEFACTOR?5000.0f?*?DISTANCEFACTOR);
????ERRCHECK(result);
????result?=?sound2->setMode(FMOD_LOOP_NORMAL);
????ERRCHECK(result);

????result?=?system->createSound(Common_MediaPath(“swish.wav“)?FMOD_2D?0?&sound3);
????ERRCHECK(result);

????/*
????????Play?sounds?at?certain?positions
????*/
????{
????????FMOD_VECTOR?pos?=?{?-10.0f?*?DISTANCEFACTOR?0.0f?0.0f?};
????????FMOD_VECTOR?vel?=?{??0.0f?0.0f?0.0f?};

????????result?=?system->playSound(sound1?0?true?&channel1);
????????ERRCHECK(result);
????????result?=?channel1->set3DAttributes(&pos?&vel);
????????ERRCHECK(result);
????????result?=?channel1->setPaused(false);
????????ERRCHECK(result);
????}

????{
????????FMOD_VECTOR?pos?=?{?15.0f?*?DISTANCEFACTOR?0.0f?0.0f?};
????????FMOD_VECTOR?vel?=?{?0.0f?0.0f?0.0f?};

????????result?=?system->playSound(sound2?0?true?&channel2);
????????ERRCHECK(result);
???????

評論

共有 條評論