Instantiates portaudio device implemented by PortAudioDeviceDriver. More...
Instantiates portaudio device implemented by PortAudioDeviceDriver.
# start up a device for listening from a microphone device portaudio read allow-deprecated-devices
If this text is saved in a file called portaudio_basic.ini then the device can be created by doing:
yarpdev --file portaudio_basic.ini
Of course, the configuration could be passed just as command line options, or as a yarp::os::Property object in a program:
Here is a list of properties checked when starting up a device based on this configuration file. Note that which properties are checked can depend on whether other properties are present. In some cases properties can also vary between operating systems. So this is just an example
PROPERTY | DESCRIPTION | DEFAULT |
device | ||
rate | audio sample rate (0=automatic) | 0 |
samples | number of samples per network packet (0=automatic). For chunks of 1 second of recording set samples=rate. Channels number is handled internally. | 0 |
channels | number of audio channels (0=automatic, max is 2) | 0 |
read | if present, just deal with reading audio (microphone) | |
write | if present, just deal with writing audio (speaker) | |
id | which portaudio index to use (-1=automatic) | -1 |
loopback | if present, send audio read from microphone immediately back to speaker | |
render_mode_append | ||
render_mode_immediate | ||
allow-deprecated-devices |