mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 07:46:01 +03:00
[PR #1212] [MERGED] audio_core: Fix return value types and shift some error handling to library. #1992
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#1992
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/1212
Author: @squidbus
Created: 10/3/2024
Status: ✅ Merged
Merged: 10/3/2024
Merged by: @georgemoralis
Base:
main← Head:audio-ret📝 Commits (1)
d8815c6audio_core: Fix return value types and shift some error handling to library.📊 Changes
4 files changed (+32 additions, -38 deletions)
View changed files
📝
src/audio_core/sdl_audio.cpp(+7 -22)📝
src/audio_core/sdl_audio.h(+4 -5)📝
src/core/libraries/audio/audioout.cpp(+17 -11)📝
src/core/libraries/audio/audioout.h(+4 -0)📄 Description
https://github.com/shadps4-emu/shadPS4/pull/1200 changed some of the audio out functions to return error codes instead of bool without changing the return type. This finishes that up by changing the return types and fixing how the return values are handled on the library side.
This also shifts some of the error checking over to the library side, similar to how it is done currently with
sceAudioOutOpen, to keep the back-end logic simpler in case there are more in the future.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.