Skip to content

Commit 1a627b7

Browse files
gyrovorbisQuzarDC
authored andcommitted
Attempted fix at DMA misalignment for snd stream.
Due to the fact that our maximum ADPCM buffer size is 32 bytes less than it used to be, now that we do split PCM, which divides the buffer into 2, our DMA-friendly buffers are no longer going to be aligned and of the right size increments for DMA transactions, which causes an assertion on an unaligned g2 DMA transfer.
1 parent 6ab495f commit 1a627b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • kernel/arch/dreamcast/include/dc/sound

kernel/arch/dreamcast/include/dc/sound/stream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ __BEGIN_DECLS
4646
#define SND_STREAM_BUFFER_MAX_PCM8 (64 << 10)
4747

4848
/** \brief The maximum buffer size for each channel of ADPCM stream. */
49-
#define SND_STREAM_BUFFER_MAX_ADPCM ((32 << 10) - 32)
49+
#define SND_STREAM_BUFFER_MAX_ADPCM ((32 << 10) - 64)
5050

5151
/** \brief The maximum buffer size for each channel of streams by default
5252
and for backward compatibility. */

0 commit comments

Comments
 (0)