.. _cpp-examples-sound-playback:

Sound playback
==============

:ref:`\<\< return to C++ examples<cpp-examples>`

Overview
--------

This example module **ALSoundPlayback** sends sound to NAO's loudspeakers.

This is a **local module**, it must be cross-compiled and sent to the robot.

Downloads
---------

Whole module
++++++++++++

:download:`soundplayback.zip <../soundplayback.zip>`

Header: alsoundplayback.h
+++++++++++++++++++++++++

:download:`alsoundplayback.h <alsoundplayback.h>`

.. literalinclude:: alsoundplayback.h
   :language: cpp

Source: alsoundplayback.cpp
+++++++++++++++++++++++++++

:download:`alsoundplayback.cpp <alsoundplayback.cpp>`

.. literalinclude:: alsoundplayback.cpp
   :language: cpp

Main: main.cpp
+++++++++++++++++++++++++++

:download:`main.cpp <main.cpp>`

.. literalinclude:: main.cpp
   :language: cpp

CMakeLists.txt
++++++++++++++

:download:`CMakeLists.txt <CMakeLists.txt>`

.. literalinclude:: CMakeLists.txt
   :language: cmake
