void tonePlayRTTTL(TONE_PLAYER* player, const prog_char str[]){ toneDetach(player); // Detach any call back handler toneStop(player); // Stop any current note player->type.rtttl.start = str; player->type.rtttl.pos = str; player->type.rtttl.state = SKIP_NAME; nextNote(player); }
static void tonePlayOff( void *data ) { uint16 dura = tone.curr_qtmf->off_duration; tone.isOnDur = false; if( dura == 0 ) toneStop( 0 ); else toneMute( (void*)dura ); }
/***************************************************************************** * FUNCTION * TONE_Stop * DESCRIPTION * This function is used to stop playing comfort tones. * * PARAMETERS * None * RETURNS * None * GLOBALS AFFECTED * None *****************************************************************************/ void TONE_Stop( void ) { tone.seqNum++; toneStop( 0 ); }