Component: WAV Player ROM (File): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 68: | Line 68: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''EndOfFile''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''EndOfFile''' | ||
|- | |- | ||
| Line 82: | Line 82: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetBitsPerSample''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetBitsPerSample''' | ||
|- | |- | ||
| Line 96: | Line 96: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetNextSample''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetNextSample''' | ||
|- | |- | ||
| Line 110: | Line 110: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetNumChannels''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetNumChannels''' | ||
|- | |- | ||
| Line 124: | Line 124: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetFilePointer''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetFilePointer''' | ||
|- | |- | ||
Revision as of 14:17, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | File |
WAV Player ROM component
Stores an audio WAV file in ROM and contains component macros to allow the WAV file to be streamed out. Compatible with analogue outputs such as DAC or PWM.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WAV_Player.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_WAV_Player.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. | |
| Return | |
GetBitsPerSample
| GetBitsPerSample | |
| Returns the number of bits per sample. | |
| Return | |
GetNextSample
GetNumChannels
| GetNumChannels | |
| Returns the number of audio channels stored in the WAV file. | |
| Return | |
SetFilePointer