Difference between revisions of "Component: WAV Library File (Audio Output)"
From Flowcode Help
Jump to navigationJump to searchLine 48: | Line 48: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 206: | Line 208: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
Revision as of 12:22, 3 February 2023
Author | Matrix TSL |
Version | 1.0 |
Category | Audio Output |
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 Source Code
Please click here to download the component source project: FC_Comp_Source_temp/WAV_Player_FAT.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_temp/WAV_Player_FAT.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
EndOfFile
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. | |
- BOOL | Return |
GetBitsPerSample
GetBitsPerSample | |
Returns the number of bits per sample during playback. | |
- BYTE | Return |
GetNextSample
GetNumChannels
GetNumChannels | |
Returns the number of audio channels stored in the WAV file during playback. | |
- BYTE | Return |
ProcessBuffer
PutNextSample
StartPlayback
StartRecording
StopRecording
StopRecording | |
- VOID | Return |