【问题标题】:Can I use SDL_mixer without SDL?我可以在没有 SDL 的情况下使用 SDL_mixer 吗?
【发布时间】:2017-04-30 21:16:43
【问题描述】:

我有一个使用 GLFW 进行窗口创建和输入的游戏。是否可以在没有 SDL 的情况下将 SDL_mixer 用于音频?

【问题讨论】:

  • 否,但应该可以仅将 SDL 用于声音。

标签: c++ sdl sdl-mixer


【解决方案1】:

不,你不能。

因为它依赖于 SDL 标头。在 SDL_mixer.h 的开头有以下几行:

#include "SDL_stdinc.h"
#include "SDL_rwops.h"
#include "SDL_audio.h"
#include "SDL_endian.h"
#include "SDL_version.h"
#include "begin_code.h"

【讨论】:

    猜你喜欢
    • 2017-12-31
    • 2019-01-31
    • 2016-08-11
    • 2021-08-10
    • 2021-07-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-03
    相关资源
    最近更新 更多