Sha256: bfe5aadc661020ad3ef877848aa7e733700be3f5f784d0e9f6d85bcbbd6ee351

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

#pragma once

#include "types.h"

namespace discord {

class VoiceManager final {
public:
    ~VoiceManager() = default;

    Result GetInputMode(InputMode* inputMode);
    void SetInputMode(InputMode inputMode, std::function<void(Result)> callback);
    Result IsSelfMute(bool* mute);
    Result SetSelfMute(bool mute);
    Result IsSelfDeaf(bool* deaf);
    Result SetSelfDeaf(bool deaf);
    Result IsLocalMute(Snowflake userId, bool* mute);
    Result SetLocalMute(Snowflake userId, bool mute);
    Result GetLocalVolume(Snowflake userId, std::uint8_t* volume);
    Result SetLocalVolume(Snowflake userId, std::uint8_t volume);

    Event<> OnSettingsUpdate;

private:
    friend class Core;

    VoiceManager() = default;
    VoiceManager(VoiceManager const& rhs) = delete;
    VoiceManager& operator=(VoiceManager const& rhs) = delete;
    VoiceManager(VoiceManager&& rhs) = delete;
    VoiceManager& operator=(VoiceManager&& rhs) = delete;

    IDiscordVoiceManager* internal_;
    static IDiscordVoiceEvents events_;
};

} // namespace discord

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rdiscord_sdk-1.1.1 third-party/include/voice_manager.h
rdiscord_sdk-1.1.0 third-party/include/voice_manager.h