[PR #1848] [MERGED] audio: Move port logic out of SDL backend and define backend interface. #2341

Closed
opened 2026-02-27 21:16:08 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1848
Author: @squidbus
Created: 12/22/2024
Status: Merged
Merged: 12/22/2024
Merged by: @georgemoralis

Base: mainHead: audio-backend


📝 Commits (1)

  • b34f240 audio: Move port logic out of SDL backend and define backend interface.

📊 Changes

5 files changed (+203 additions, -156 deletions)

View changed files

📝 src/core/libraries/audio/audioout.cpp (+159 -10)
📝 src/core/libraries/audio/audioout.h (+1 -1)
src/core/libraries/audio/audioout_backend.h (+19 -0)
📝 src/core/libraries/audio/sdl_audio.cpp (+18 -115)
📝 src/core/libraries/audio/sdl_audio.h (+6 -30)

📄 Description

  • Moves most of the port management logic out of the SDL audio backend, simplifying it down to just dumb SDL stream create/output/configure logic and allowing common AudioOut logic to be shared.
  • Defines an interface for audio out backends to allow plugging in other implementations in the future.
  • Implements sceAudioOutClose.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/1848 **Author:** [@squidbus](https://github.com/squidbus) **Created:** 12/22/2024 **Status:** ✅ Merged **Merged:** 12/22/2024 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `audio-backend` --- ### 📝 Commits (1) - [`b34f240`](https://github.com/shadps4-emu/shadPS4/commit/b34f24005a0d1e1f4fc43269d64e8f60d8d6872d) audio: Move port logic out of SDL backend and define backend interface. ### 📊 Changes **5 files changed** (+203 additions, -156 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/audio/audioout.cpp` (+159 -10) 📝 `src/core/libraries/audio/audioout.h` (+1 -1) ➕ `src/core/libraries/audio/audioout_backend.h` (+19 -0) 📝 `src/core/libraries/audio/sdl_audio.cpp` (+18 -115) 📝 `src/core/libraries/audio/sdl_audio.h` (+6 -30) </details> ### 📄 Description * Moves most of the port management logic out of the SDL audio backend, simplifying it down to just dumb SDL stream create/output/configure logic and allowing common AudioOut logic to be shared. * Defines an interface for audio out backends to allow plugging in other implementations in the future. * Implements `sceAudioOutClose`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:16:08 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2341
No description provided.