1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-20 02:42:42 +01:00

Codechange: Use std::byte for sound buffers.

This commit is contained in:
Peter Nelson
2025-05-13 01:08:07 +01:00
committed by Peter Nelson
parent 5585363407
commit 87fa1e41d5
8 changed files with 11 additions and 11 deletions

View File

@@ -19,7 +19,7 @@
struct MixerChannel {
/* pointer to allocated buffer memory */
std::shared_ptr<std::vector<uint8_t>> memory;
std::shared_ptr<std::vector<std::byte>> memory;
/* current position in memory */
uint32_t pos;
@@ -180,7 +180,7 @@ MixerChannel *MxAllocateChannel()
return mc;
}
void MxSetChannelRawSrc(MixerChannel *mc, const std::shared_ptr<std::vector<uint8_t>> &mem, uint rate, bool is16bit)
void MxSetChannelRawSrc(MixerChannel *mc, const std::shared_ptr<std::vector<std::byte>> &mem, uint rate, bool is16bit)
{
mc->memory = mem;
mc->frac_pos = 0;