mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-06 09:06:20 +00:00
More modules (#99)
* added dummy sceAudio lib * added lseek in file_system * updated sdl3 * forgot sdl3 in cmake * cmake is case sensitive in linux * fixed SDL_CreateWindowWithPosition * fixed vulkan issues with latest sdl3 * some progress in sceAudio * improvements in audio * more sound improvements * first working sound output , from openorbis sound demo * updated sdl3 , zlib-ng can now be build with msvc+clangci * fixed cmake * fix for audio buffering * clang format fix * format fix * better error handling for sceAudioOutput
This commit is contained in:
parent
2a03b4d03b
commit
2e931c9f72
27 changed files with 1861 additions and 50 deletions
|
@ -49,9 +49,17 @@ static void CreateSdlWindow(WindowCtx* ctx) {
|
|||
std::exit(0);
|
||||
}
|
||||
std::string title = "shadps4 v" + std::string(Common::VERSION);
|
||||
ctx->m_window = SDL_CreateWindowWithPosition(
|
||||
title.c_str(), SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, width, height,
|
||||
SDL_PropertiesID props = SDL_CreateProperties();
|
||||
SDL_SetStringProperty(props, SDL_PROP_WINDOW_CREATE_TITLE_STRING, title.c_str());
|
||||
SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_X_NUMBER, SDL_WINDOWPOS_CENTERED);
|
||||
SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_Y_NUMBER, SDL_WINDOWPOS_CENTERED);
|
||||
SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_WIDTH_NUMBER, width);
|
||||
SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_HEIGHT_NUMBER, height);
|
||||
SDL_SetNumberProperty(
|
||||
props, "flags",
|
||||
(static_cast<uint32_t>(SDL_WINDOW_HIDDEN) | static_cast<uint32_t>(SDL_WINDOW_VULKAN)));
|
||||
ctx->m_window = SDL_CreateWindowWithProperties(props);
|
||||
SDL_DestroyProperties(props);
|
||||
|
||||
ctx->is_window_hidden =
|
||||
true; // hide window until we need to show something (should draw something in buffers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue