e_sound.c File Reference

Package to play basics sounds on the e-puck's speaker.
For more info look at this: Sound. More...

#include "../motor_led/e_epuck_ports.h"
#include "e_sound.h"

Functions

void e_init_sound (void)
 Initialize all you need to play sound on speaker.
void e_play_sound (int sound_nbr, int sound_length)
 Play a sound.
void e_close_sound (void)
 Disable the sound After that you can't play sound anymore, if you want to, you have to call e_init_sound.


Detailed Description

Package to play basics sounds on the e-puck's speaker.
For more info look at this: Sound.

Author:
Code: Michael Bonani
Doc: Jonathan Besuchet

Function Documentation

void e_close_sound ( void   ) 

Disable the sound After that you can't play sound anymore, if you want to, you have to call e_init_sound.

void e_init_sound ( void   ) 

Initialize all you need to play sound on speaker.

Warning:
You must to call this function before playing a sound (call it only one time).

void e_play_sound ( int  sound_nbr,
int  sound_length 
)

Play a sound.

Parameters:
sound_nbr the begining of the sound
sound_length the length of the sound
See also:
Sound


Generated on Fri Feb 29 14:26:54 2008 for e-puck by  doxygen 1.5.4