Component: WAV Library File (Storage)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.0 |
Category | Storage |
Contents
WAV Library File component
Allows WAV files to be played or recorded using a file component to provide the data. Complete with buffer to allow for uninterrupted playback when performing other tasks. Playback compatible with analogue outputs such as DAC or PWM. Recording compatible with analogue inputs such as a Microphone.
Component Pack
STORAGE
Detailed description
No detailed description exists yet for this component
Examples
Simple playback example - allows a wav file to be streamed out using PWM. Repeats the playback in a loop.
Simple recording example - allows a wav file to be recorded from a microphone connected to an ADC input pin. Records for approx 10 seconds.
Downloadable macro reference
![]() |
EndOfFile |
A simple check to see if we are at the end of the file. Returns 0 if we and not yet at the end fo the file. Returns 1 if we are at the end of the file. | |
![]() |
Return |
![]() |
StopRecording |
![]() |
Return |
![]() |
GetNumChannels |
Returns the number of audio channels stored in the WAV file during playback. | |
![]() |
Return |
![]() |
GetBitsPerSample |
Returns the number of bits per sample during playback. | |
![]() |
Return |