audio.drivers: Audio Drivers

Description Usage Arguments Details Value See Also Examples

View source: R/driver.R


audio.drivers lists all currently loaded and available audio drivers. returns the name of the currently active audio driver or NULL if no audio drivers is available. selects an audio driver as the current driver. attempts to load a modular audio driver and, if succeessful, makes it the current audio driver.





name of the driver to load (as it appears in the name column of audio.drivers()) or NULL to load the default audio driver


path to the dynamic module to load


The audio package comes with several built-in audio drivers (currently "wmm": WindowsMultiMedia for MS Windows, "macosx": AudioUnits for Mac OS X and "portaudio": PortAudio for unix), but it also supports 3rd-party drivers to be loaded (e.g. from other packages).

All operations that create new audio instances (play and record) use the current audio driver. The audio package allows the user to switch between different audio drivers. Each audio instance is tied to the driver it was created with even if the current driver was changed in the meantime.

Drivers are references by its short name listed in the name column in the list of available drivers (obtainable via audio.drivers).

An audio driver is any shared module that provides a C function create_audio_driver which returns a pointer to a populated structure audio_driver as defined in driver.h.


audio.drivers returns a data frame lising all availbale drivers and return the name of the active driver or NULL if no drivers ar avaliable. returns the name of the loaded driver.

See Also

record, play



Example output

[1] name        description current    
<0 rows> (or 0-length row.names)

audio documentation built on Nov. 25, 2021, 5:06 p.m.

Related to audio.drivers in audio...