- Main Page
- Modules
- Data Structures
- Files
- Directories

# e_sound.h File Reference

Package to play basics sounds on the e-puck's speaker. More...

## Functions
void | e_init_sound (void)
| Initialize all you need to play sound on speaker.
void | e_play_sound (int sound_offset, 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.
void | e_init_dci_master (void)
void | e_init_codec_slave (void)
void | e_sub_dci_kickoff (int, int)

## Detailed Description

Package to play basics sounds on the e-puck's speaker.

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_codec_slave | ( | void |  | ) |

void e_init_dci_master | ( | void |  | ) |

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

void e_sub_dci_kickoff | ( | int | ,
|  | int |  |
| ) |  |  |