All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
vexrttl.c File Reference

Read rtttl song and setup cortex for background playback. More...

#include "ch.h"
#include "hal.h"
#include "vex.h"

Functions

char * vexAudioPlayRtttl (char *song, int amplitude, int repeat)
 Play ringtone string using the vsl sound library. More...
 

Detailed Description

Read rtttl song and setup cortex for background playback.

Function Documentation

char* vexAudioPlayRtttl ( char *  song,
int  amplitude,
int  repeat 
)

Play ringtone string using the vsl sound library.

Parameters
[in]songPointer to buffer with rtttl sound data
[in]amplitudevolume to play song at
[in]repeatflag indicating song is played continuously in a loop
Returns
char * to name of song