]> git.alsa-project.org Git - alsa-lib.git/commit
Add truncate option to PCM file plugin
authorTakashi Iwai <tiwai@suse.de>
Wed, 12 Mar 2008 15:30:26 +0000 (16:30 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 12 Mar 2008 15:30:26 +0000 (16:30 +0100)
commit3d0dae9099866910daed8bdc2e8c5b8a2422a981
tree5edd603498e0938b1bfa373c88e9fbd2521ebeb9
parentfe8bb134005bf0afeaa9dbd1465f01a575728a35
Add truncate option to PCM file plugin

Addeed a new option "truncate" to indicate the behavior of creating
the output file.  When it's true (the default), the file is overwritten
and truncated at creation.  When false, the plugin tries to open a
unique file with a number suffix.

The global behavior of "file" and "tee" PCMs is defined via
defaults.pcm.file_truncate option.  You can overwrite it in ~/.asoundrc.
src/conf/alsa.conf
src/pcm/pcm_file.c