|
From: kosmirror <kos...@us...> - 2025-12-01 19:00:13
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "A pseudo Operating System for the Dreamcast.".
The branch, master has been updated
via d142b568fd3a900bbc7bb0d95d15e2469565db40 (commit)
from df6755aafd1c9e83fefa797165ffc9cdbc42aed5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d142b568fd3a900bbc7bb0d95d15e2469565db40
Author: QuzarDC <qu...@co...>
Date: Sun Nov 30 17:29:20 2025 -0500
snd_stream: Correct stdint usage.
- Add missing stdint.h include.
- Correct function prototypes in header.
- Replace last arch/types types with stdint.
- Remove arch/types include.
-----------------------------------------------------------------------
Summary of changes:
kernel/arch/dreamcast/include/dc/sound/stream.h | 8 ++++----
kernel/arch/dreamcast/sound/snd_stream.c | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/kernel/arch/dreamcast/include/dc/sound/stream.h b/kernel/arch/dreamcast/include/dc/sound/stream.h
index 0eb3b5bc..a8ca8fd0 100644
--- a/kernel/arch/dreamcast/include/dc/sound/stream.h
+++ b/kernel/arch/dreamcast/include/dc/sound/stream.h
@@ -28,7 +28,7 @@
#include <kos/cdefs.h>
__BEGIN_DECLS
-#include <arch/types.h>
+#include <stdint.h>
/** \defgroup audio_streaming Streaming
\brief Streaming audio playback and management
@@ -300,7 +300,7 @@ void snd_stream_queue_go(snd_stream_hnd_t hnd);
\param freq The frequency of the sound.
\param st 1 if the sound is stereo, 0 if mono.
*/
-void snd_stream_start(snd_stream_hnd_t hnd, uint32 freq, int st);
+void snd_stream_start(snd_stream_hnd_t hnd, uint32_t freq, int st);
/** \brief Start a 8-bit PCM stream.
@@ -311,7 +311,7 @@ void snd_stream_start(snd_stream_hnd_t hnd, uint32 freq, int st);
\param freq The frequency of the sound.
\param st 1 if the sound is stereo, 0 if mono.
*/
-void snd_stream_start_pcm8(snd_stream_hnd_t hnd, uint32 freq, int st);
+void snd_stream_start_pcm8(snd_stream_hnd_t hnd, uint32_t freq, int st);
/** \brief Start a 4-bit ADPCM stream.
@@ -322,7 +322,7 @@ void snd_stream_start_pcm8(snd_stream_hnd_t hnd, uint32 freq, int st);
\param freq The frequency of the sound.
\param st 1 if the sound is stereo, 0 if mono.
*/
-void snd_stream_start_adpcm(snd_stream_hnd_t hnd, uint32 freq, int st);
+void snd_stream_start_adpcm(snd_stream_hnd_t hnd, uint32_t freq, int st);
/** \brief Stop a stream.
diff --git a/kernel/arch/dreamcast/sound/snd_stream.c b/kernel/arch/dreamcast/sound/snd_stream.c
index 9ed03333..c421a0fc 100644
--- a/kernel/arch/dreamcast/sound/snd_stream.c
+++ b/kernel/arch/dreamcast/sound/snd_stream.c
@@ -237,7 +237,7 @@ static void snd_pcm16_split_unaligned(void *buffer, void *left, void *right, siz
void snd_pcm16_split_sq(uint32_t *data, uintptr_t left, uintptr_t right, size_t size) {
g2_ctx_t ctx;
uint32_t i;
- uint16 *s = (uint16 *)data;
+ uint16_t *s = (uint16_t *)data;
size_t remain = size;
uint32_t *masked_left;
uint32_t *masked_right;
@@ -308,8 +308,8 @@ void snd_pcm16_split_sq(uint32_t *data, uintptr_t left, uintptr_t right, size_t
right += size - remain;
for(; remain >= 4; remain -= 4) {
- *((vuint16 *)left) = *s++;
- *((vuint16 *)right) = *s++;
+ *((volatile uint16_t *)left) = *s++;
+ *((volatile uint16_t *)right) = *s++;
left += 2;
right += 2;
}
hooks/post-receive
--
A pseudo Operating System for the Dreamcast.
|