Audio.ReadFileBytes¶
Name | Mandatory | Description | Default | Type |
---|---|---|---|---|
⬅️ Input |
The path to the audio file to read. | String |
||
Output ➡️ |
The complete audio file contents as raw PCM float32 samples. | Bytes |
||
Channels |
No | An int representing the number of desired output audio channels. | 2 |
Int |
SampleRate |
No | An int representing the desired output sampling rate. | 44100 |
Int |
This shard reads an entire audio file into bytes. Unlike Audio.ReadFile, this shard reads the complete file at once and outputs it as bytes, without the uint16_t sample count limitation of SHAudio. This is useful when you need to process large audio files in their entirety.