GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — code/Chapter11/SoundEvent.h at master · gameprogcpp/code Expand file tree/ Copy pathSoundEvent.hMore file actions 44 lines (42 loc) · 1.23 KB / Copy pathSoundEvent.hFile metadata and controls44 lines (42 loc) · 1.23 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 // ---------------------------------------------------------------- // From Game Programming in C++ by Sanjay Madhav // Copyright (C) 2017 Sanjay Madhav. All rights reserved. // // Released under the BSD License // See LICENSE in root directory for full details. // ---------------------------------------------------------------- #pragma once #include <string> #include "Math.h" class SoundEvent { public: SoundEvent(); // Returns true if associated FMOD event still exists bool IsValid(); // Restart event from beginning void Restart(); // Stop this event void Stop(bool allowFadeOut = true); // Setters void SetPaused(bool pause); void SetVolume(float value); void SetPitch(float value); void SetParameter(const std::string& name, float value); // Getters bool GetPaused() const; float GetVolume() const; float GetPitch() const; float GetParameter(const std::string& name); // Positional bool Is3D() const; void Set3DAttributes(const Matrix4& worldTrans); protected: // Make this constructor protected and AudioSystem a friend // so that only AudioSystem can access this constructor. friend class AudioSystem; SoundEvent(class AudioSystem* system, unsigned int id); private: class AudioSystem* mSystem; unsigned int mID; }; |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |