mirror of
https://github.com/nucular/sfxrlua.git
synced 2024-12-24 18:44:20 +00:00
Renamed SavingAndLoading too
This commit is contained in:
parent
67dffe001c
commit
f986205f91
@ -43,7 +43,7 @@
|
||||
<li><a href="#Highpass">Highpass</a></li>
|
||||
<li><a href="#Vibrato">Vibrato</a></li>
|
||||
<li><a href="#Randomization">Randomization</a></li>
|
||||
<li><a href="#SavingAndLoading">SavingAndLoading</a></li>
|
||||
<li><a href="#Serialization">Serialization</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
@ -404,7 +404,7 @@ Decay_Sustain_Release_.28ADSR.29_envelope">ASD envelope</a> that controls the so
|
||||
<td class="summary">Randomize all sound parameters to generate a "blip" sound</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2><a href="#SavingAndLoading">SavingAndLoading</a></h2>
|
||||
<h2><a href="#Serialization">Serialization</a></h2>
|
||||
<table class="function_list">
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#sfxr.Sound:exportWAV">sfxr.Sound:exportWAV (f[, rate=44100[, depth=0]])</a></td>
|
||||
@ -1650,7 +1650,7 @@ Decay_Sustain_Release_.28ADSR.29_envelope">ASD envelope</a> that controls the so
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
<h2 class="section-header "><a name="SavingAndLoading"></a>SavingAndLoading</h2>
|
||||
<h2 class="section-header "><a name="Serialization"></a>Serialization</h2>
|
||||
|
||||
<dl class="function">
|
||||
<dt>
|
||||
@ -1792,7 +1792,7 @@ Decay_Sustain_Release_.28ADSR.29_envelope">ASD envelope</a> that controls the so
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2016-06-12 01:12:38 </i>
|
||||
<i style="float:right;">Last updated 2016-06-12 01:18:55 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
@ -43,7 +43,7 @@
|
||||
<li><a href="#Highpass">Highpass</a></li>
|
||||
<li><a href="#Vibrato">Vibrato</a></li>
|
||||
<li><a href="#Randomization">Randomization</a></li>
|
||||
<li><a href="#SavingAndLoading">SavingAndLoading</a></li>
|
||||
<li><a href="#Serialization">Serialization</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
@ -404,7 +404,7 @@ Decay_Sustain_Release_.28ADSR.29_envelope">ASD envelope</a> that controls the so
|
||||
<td class="summary">Randomize all sound parameters to generate a "blip" sound</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2><a href="#SavingAndLoading">SavingAndLoading</a></h2>
|
||||
<h2><a href="#Serialization">Serialization</a></h2>
|
||||
<table class="function_list">
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#sfxr.Sound:exportWAV">sfxr.Sound:exportWAV (f[, rate=44100[, depth=0]])</a></td>
|
||||
@ -1650,7 +1650,7 @@ Decay_Sustain_Release_.28ADSR.29_envelope">ASD envelope</a> that controls the so
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
<h2 class="section-header "><a name="SavingAndLoading"></a>SavingAndLoading</h2>
|
||||
<h2 class="section-header "><a name="Serialization"></a>Serialization</h2>
|
||||
|
||||
<dl class="function">
|
||||
<dt>
|
||||
@ -1792,7 +1792,7 @@ Decay_Sustain_Release_.28ADSR.29_envelope">ASD envelope</a> that controls the so
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2016-06-12 01:12:38 </i>
|
||||
<i style="float:right;">Last updated 2016-06-12 01:18:55 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
10
sfxr.lua
10
sfxr.lua
@ -1192,7 +1192,7 @@ function sfxr.Sound:randomBlip(seed)
|
||||
end
|
||||
|
||||
--- Generate and export the audio data to a PCM WAVE file.
|
||||
-- @within SavingAndLoading
|
||||
-- @within Serialization
|
||||
-- @tparam ?string|file|love.filesystem.File f a path or file in `wb`-mode
|
||||
-- (passed files will not be closed)
|
||||
-- @tparam[opt=44100] SAMPLERATE rate the sampling rate
|
||||
@ -1301,7 +1301,7 @@ function sfxr.Sound:exportWAV(f, rate, depth)
|
||||
end
|
||||
|
||||
--- Save the sound parameters to a file as a Lua table
|
||||
-- @within SavingAndLoading
|
||||
-- @within Serialization
|
||||
-- @tparam ?string|file|love.filesystem.File f a path or file in `w`-mode
|
||||
-- (passed files will not be closed)
|
||||
-- @tparam[opt=true] bool minify whether to minify the output or not
|
||||
@ -1360,7 +1360,7 @@ function sfxr.Sound:save(f, minify)
|
||||
end
|
||||
|
||||
--- Load the sound parameters from a file containing a Lua table
|
||||
-- @within SavingAndLoading
|
||||
-- @within Serialization
|
||||
-- @tparam ?string|file|love.filesystem.File f a path or file in `r`-mode
|
||||
-- (passed files will not be closed)
|
||||
-- @raise "incompatible version: x.x.x"
|
||||
@ -1392,7 +1392,7 @@ function sfxr.Sound:load(f)
|
||||
end
|
||||
|
||||
--- Save the sound parameters to a file in the sfxr binary format (version 102)
|
||||
-- @within SavingAndLoading
|
||||
-- @within Serialization
|
||||
-- @tparam ?string|file|love.filesystem.File f a path or file in `wb`-mode
|
||||
-- (passed files will not be closed)
|
||||
function sfxr.Sound:saveBinary(f)
|
||||
@ -1451,7 +1451,7 @@ end
|
||||
|
||||
--- Load the sound parameters from a file in the sfxr binary format
|
||||
-- (version 100-102)
|
||||
-- @within SavingAndLoading
|
||||
-- @within Serialization
|
||||
-- @tparam ?string|file|love.filesystem.File f a path or file in `rb`-mode
|
||||
-- (passed files will not be closed)
|
||||
-- @raise "incompatible version: x", "unexpected file length"
|
||||
|
Loading…
Reference in New Issue
Block a user