Programmer Guide/Concepts/Current Sound File: Difference between revisions
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
{{Programmer Guide}} | {{Programmer Guide}} | ||
Information about the currently | Information about the currently active sound file is stored in the following two variables: | ||
<code>CSF</code> - containing the full path of the file | |||
<code>CSFH</code> - a string of the format "<code>srate channels samples code type mode</code>", indicating the respective properties of the sound file | |||
If no sound file is active, the variable <code>CSF</code> is empty. See [[General_Descriptions/Shell_Environment|Shell Environment]] for more details. | |||
Sound files opened for write access (<code>/Write</code>) cannot be shared with other users or processes. The sound file management is normally performed by the application {{STX}}. All other applications should use the {{STX}} [[APPMSG]] interface to attach or select sound files. | |||
The script library <code>[[Programmer_Guide/Macro_Library/BSF|BSF]]</code> implements a set of functions for using sound files and segments in scripts. Namely the function [[Programmer_Guide/Macro_Library/BSF#Select|BSF SELECT]] may be used to designate a sound file as the current sound file. | |||
You can retrieve a list of loaded sound files with the <code>[[Programmer_Guide/Command_Reference/LIST|LIST SOUNDFILE]]</code> command. The sound file list is globally available. The current sound file, however, is dependent on the shell environment. |
Latest revision as of 15:08, 14 December 2017
Information about the currently active sound file is stored in the following two variables:
CSF
- containing the full path of the file
CSFH
- a string of the format "srate channels samples code type mode
", indicating the respective properties of the sound file
If no sound file is active, the variable CSF
is empty. See Shell Environment for more details.
Sound files opened for write access (/Write
) cannot be shared with other users or processes. The sound file management is normally performed by the application STx. All other applications should use the STx APPMSG interface to attach or select sound files.
The script library BSF
implements a set of functions for using sound files and segments in scripts. Namely the function BSF SELECT may be used to designate a sound file as the current sound file.
You can retrieve a list of loaded sound files with the LIST SOUNDFILE
command. The sound file list is globally available. The current sound file, however, is dependent on the shell environment.