无法从SDL_GetAudioDeviceName读取内存

时间:2019-01-31 14:27:37

标签: c++ memory sdl-2 unreal-engine4

我尝试使用SDL_GetAudioDeviceName获取音频设备的名称,并将其存储到const char *变量中。

问题是我做不到:

cont char* RecorderName = SDL_GetAudioDeviceName()

在调试模式下运行它时,我的RecorderName变量仅为= NULL,而不是SDL_GetAudioDeviceName返回的地址。

您知道对此有什么解决办法吗?

enter image description here

0 个答案:

没有答案