MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getStatus

Method getStatus

src/Core/Audio/Sound.cpp:62–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 return m_pitch;
61 }
62 SoundStatus Sound::getStatus() const
63 {
64 if (!m_manager.isValidVoiceHandle(m_handle))
65 {
66 return SoundStatus::Stopped;
67 }
68 else if (m_manager.getPause(m_handle))
69 {
70 return SoundStatus::Paused;
71 }
72 else
73 {
74 return SoundStatus::Playing;
75 }
76 }
77 void Sound::setOffset(double offset) const
78 {
79 m_manager.seek(m_handle, offset);

Callers

nothing calls this directly

Calls 2

isValidVoiceHandleMethod · 0.80
getPauseMethod · 0.80

Tested by

no test coverage detected