WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelog
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.
Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. Source
  4. Sound.h
Mission NodeSDK 6.1C++sound.h

Sound.h

SDK Source File: Sound.h

Source / SDK 6.1 / C++ / Core

Sound.h

Sound.h
CPP
1/* Copyright Statement:
2 *
3 * (C) 2021-2024 Cubios Inc. All rights reserved.
4 */
5
6#ifndef WASMLIBS_CPP_SOUND_H_
7#define WASMLIBS_CPP_SOUND_H_
8
9#include <string>
10#include "native.h"
11#include "Object.h"
12
13namespace Cubios
14{
15class Sound: public Object
16{
17 public:
18 explicit Sound(const std::string& name);
19 ~Sound();
20 void Play(uint8_t volume = 100);
21
22 static void Stop();
23 static bool IsPlaying();
24
25 private:
26 soundID_t id;
27};
28
29} // namespace Cubios
30#endif // WASMLIBS_CPP_SOUND_H_
31
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.
Context Rail

Related nodes

AppManager.cpp
Source / SDK 6.1 / C++ / Core
AppManager.h
Source / SDK 6.1 / C++ / Core
Gfx.h
Source / SDK 6.1 / C++ / Core
native access.h
Source / SDK 6.1 / C++ / Core
Previous Node
Sound.cpp
Source / SDK 6.1 / C++ / Core
Next Node
AppManager.cpp
Source / SDK 6.2 / C++ / Core