ArPiRobot-CoreLib C++
C++ library for ArPiRobot robots
|
#include <arpirobot/core/audio/AudioManager.hpp>
Static Public Member Functions | |
static std::vector< AudioDeviceInfo > | getPlaybackDevices () |
static int | playSound (std::string file) |
static int | playSound (std::string file, AudioDeviceInfo info) |
static void | stopJob (int jobId) |
Friends | |
class | BaseRobot |
Helper class to play audio files via audio devices on the robot
|
static |
Get all available playback devices on this system
|
static |
Play a sound file on the default audio device
file | Full path to the audio file to play |
|
static |
Play a sound file on a specific audio device
file | Full path to the audio file to play |
info | AudioDeviceInfo object for the device to play the file on (as obtained from getPlaybackDevices()) |
|
static |
Stop playing a certain sound using it's job ID (as obtained from playSound()) If the job has already finished, this function will do nothing
jobId | job ID for the sound to stop as obtained from playSound() |