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:
committed by
Peter Nelson
parent
5585363407
commit
87fa1e41d5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user