- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我看到了许多SDL_mixer的教程,但是都没有使用Mix_Init函数。我在文档页面上看到了此Mix_Init函数
https://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer.html
这些教程仅使用名为Mix_OpenAudio的函数来初始化SDL_mixer。
我的问题是,如果我调用函数Mix_OpenAudio,它将自动调用函数Mix_Init或无需调用函数Mix_Init。
是Mix_Init函数只是某些类型的检查器函数。
最佳答案
查看https://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer_9.html上的文档:
Initialize by loading support as indicated by the flags, or at leastreturn success if support is already loaded. You may call thismultiple times, which will actually require you to call Mix_Quit justonce to clean up. You may call this function with a 0 to retrievewhether support was built-in or not loaded yet.
Mix_Init
调用。
关于c++ - Mix_Init和Mix_OpenAudio SDL有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62871345/
这个问题不太可能帮助任何 future 的访问者;它只与一个小的地理区域、一个特定的时间点或一个非常狭窄的情况有关,这些情况并不普遍适用于互联网的全局受众。为了帮助使这个问题更广泛地适用,visit
我是一名优秀的程序员,十分优秀!