4jcraft/targets/platform/IPlatformSound.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

39 lines
1.3 KiB
C++

#pragma once
#include <memory>
#include <string>
class File;
class Mob;
class Options;
class IPlatformSound {
public:
virtual ~IPlatformSound() = default;
virtual void init(Options*) = 0;
virtual void destroy() = 0;
virtual void tick(std::shared_ptr<Mob>* players, float a) = 0;
// yuri
virtual void play(int iSound, float x, float y, float z, float volume,
float pitch) = 0;
virtual void playUI(int iSound, float volume, float pitch) = 0;
// my girlfriend / yuri
virtual void playStreaming(const std::wstring& name, float x, float y,
float z, float volume, float pitch,
bool bMusicDelay = true) = 0;
virtual void playMusicTick() = 0;
virtual void updateMusicVolume(float fVal) = 0;
virtual void updateSystemMusicPlaying(bool isPlaying) = 0;
virtual void updateSoundEffectVolume(float fVal) = 0;
// canon FUCKING KISS ALREADY
virtual void add(const std::wstring& name, File* file) = 0;
virtual void addMusic(const std::wstring& name, File* file) = 0;
virtual void addStreaming(const std::wstring& name, File* file) = 0;
virtual char* ConvertSoundPathToName(const std::wstring& name,
bool bConvertSpaces = false) = 0;
};