# Questions about MakeCode C++ sound

**URL:** <https://forum.makecode.com/t/questions-about-makecode-c-sound/42721>\
**Category:** Help\
**Created:** [March 11, 2026, 4:13pm UTC](https://forum.makecode.com/t/questions-about-makecode-c-sound/42721 "2026-03-11T16:13:27Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [March 16, 2026, 7:55pm UTC](https://forum.makecode.com/t/questions-about-makecode-c-sound/42721/8 "2026-03-16T19:55:01Z")

</div>

@VoxelMaster64 I’ve moved these posts into their own thread so that they don’t get lost in the just chatting milieu.

no, there is no way to upload data files into makecode but there is a much more efficient way to include them in your program. see this post where i gave a sample script for converting number arrays into hex buffers:

> [@star SAMMY: Text-To-Speech / Speech Synthesizer Extension!](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/39):
>
> if the data you’re including in your extension is lots of number arrays, then you should absolutely use buffers instead. they are way more efficient than arrays in terms of both memory usage and code size. however, if your data is a bunch of strings or images then you probably won’t gain anything by converting them to hex buffers. here’s a little bit of code to get you started if you do have some number arrays you want to convert. this code will convert a number array into the string representa…

as for what you want to do, i’d say that if you wanted to edit the C++ then you might be better off adding straight up sample playback rather than doing some waveform trickery to better approximate the sound. then you could write a script to convert your sample to PCM data and have the C++ code play that back.

we do have sample playback implemented in some of our other targets (micro:bit) it just hasn’t made its way to arcade yet.

---

_[View the full topic](https://forum.makecode.com/t/questions-about-makecode-c-sound/42721)._
