gpt4 book ai didi

c++ - 我可以在没有 SDL 的情况下使用 SDL_mixer 吗?

转载 作者:行者123 更新时间:2023-11-30 05:13:55 30 4
gpt4 key购买 nike

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

最佳答案

不,你不能。

因为它依赖于 SDL header 。在 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"

关于c++ - 我可以在没有 SDL 的情况下使用 SDL_mixer 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43665834/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com