fluidsettings: different color for deprecated settings

This commit is contained in:
derselbst 2017-10-18 14:08:02 +02:00
parent d54a9af4ea
commit 9b5a204e02
2 changed files with 51 additions and 6 deletions

View file

@ -115,8 +115,11 @@ https://stackoverflow.com/a/6251757
<type>bool</type> <type>bool</type>
<def>1 (TRUE)</def> <def>1 (TRUE)</def>
<desc> <desc>
This is the low-latency setting. If on, you're allowed to call fluid_synth_write_s16, fluid_synth_write_float, fluid_synth_nwrite_float or fluid_synth_process in parallel with the rest of the calls, and it won't be blocked by time intensive calls to the synth. Turn it off if throughput is more important than latency, e g in rendering-to-file scenarios where underruns is not an issue. <br /><br /><strong>Deprecated:</strong><br />As of 1.1.7 this option is deprecated. This option enforces thread safety for rvoice_mixer, which causes rvoice_events to be queued internally. The current implementation relies on the fact that this option is set to TRUE to correctly render any amount of requested audio. Also calling fluid_synth_write_* in parallel is not considered to be a use-case. It would cause undefined audio output, as it would be unpredictable for the user which rvoice_events specifically would be dispatched to which fluid_synth_write_* call. This is the low-latency setting. If on, you're allowed to call fluid_synth_write_s16, fluid_synth_write_float, fluid_synth_nwrite_float or fluid_synth_process in parallel with the rest of the calls, and it won't be blocked by time intensive calls to the synth. Turn it off if throughput is more important than latency, e g in rendering-to-file scenarios where underruns is not an issue.
</desc> </desc>
<deprecated>
As of 1.1.7 this option is deprecated. This option enforces thread safety for rvoice_mixer, which causes rvoice_events to be queued internally. The current implementation relies on the fact that this option is set to TRUE to correctly render any amount of requested audio. Also calling fluid_synth_write_* in parallel is not considered to be a use-case. It would cause undefined audio output, as it would be unpredictable for the user which rvoice_events specifically would be dispatched to which fluid_synth_write_* call.
</deprecated>
</setting> </setting>
<setting> <setting>
<name>polyphony</name> <name>polyphony</name>

View file

@ -50,6 +50,7 @@ td
.player {background-color: hsl(85, 100%, 85%);} .player {background-color: hsl(85, 100%, 85%);}
.shell {background-color: hsl(60, 100%, 90%);} .shell {background-color: hsl(60, 100%, 90%);}
.synth {background-color: hsl(35, 100%, 90%);} .synth {background-color: hsl(35, 100%, 90%);}
.deprecated {background-color: hsl(0, 0%, 93%);}
</style> </style>
<title>FluidSettings</title> <title>FluidSettings</title>
</head> </head>
@ -79,9 +80,16 @@ td
<xsl:sort select="name(..)" /> <xsl:sort select="name(..)" />
<!-- <xsl:sort select="name" /> --> <!-- <xsl:sort select="name" /> -->
<tr> <tr>
<!-- the class attribute of tr shall be the name of the settings group of the current setting --> <!-- the class attribute of tr shall be the name of the settings group of the current setting, unless the setting is marked deprecated -->
<xsl:attribute name="class"> <xsl:attribute name="class">
<xsl:value-of select="name(..)" /> <xsl:choose>
<xsl:when test="deprecated">
deprecated
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="name(..)" />
</xsl:otherwise>
</xsl:choose>
</xsl:attribute> </xsl:attribute>
<td class="cell-name first-row"> <td class="cell-name first-row">
@ -101,8 +109,17 @@ td
<tr> <tr>
<xsl:attribute name="class"> <xsl:attribute name="class">
<xsl:value-of select="name(..)" /> <xsl:choose>
<xsl:when test="deprecated">
deprecated
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="name(..)" />
</xsl:otherwise>
</xsl:choose>
</xsl:attribute> </xsl:attribute>
<td></td> <td></td>
<th>Default</th> <th>Default</th>
<td class="cell-def"> <td class="cell-def">
@ -112,8 +129,17 @@ td
<tr> <tr>
<xsl:attribute name="class"> <xsl:attribute name="class">
<xsl:value-of select="name(..)" /> <xsl:choose>
<xsl:when test="deprecated">
deprecated
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="name(..)" />
</xsl:otherwise>
</xsl:choose>
</xsl:attribute> </xsl:attribute>
<td></td> <td></td>
<th> <th>
<xsl:choose> <xsl:choose>
@ -150,12 +176,28 @@ td
<tr> <tr>
<xsl:attribute name="class"> <xsl:attribute name="class">
<xsl:value-of select="name(..)" /> <xsl:choose>
<xsl:when test="deprecated">
deprecated
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="name(..)" />
</xsl:otherwise>
</xsl:choose>
</xsl:attribute> </xsl:attribute>
<td></td> <td></td>
<th>Description</th> <th>Description</th>
<td class="cell-desc"> <td class="cell-desc">
<xsl:copy-of select="desc" /> <xsl:copy-of select="desc" />
<xsl:choose>
<xsl:when test="deprecated">
<br /><br />
<strong style="color:red">DEPRECATED</strong><br /><br />
<xsl:copy-of select="deprecated" />
</xsl:when>
</xsl:choose>
</td> </td>
</tr> </tr>
</xsl:for-each> </xsl:for-each>