mirror of
https://github.com/RPCS3/soundtouch.git
synced 2024-09-19 16:01:37 +02:00
Merged typo correction patch
This commit is contained in:
commit
47f74e83ef
@ -865,6 +865,7 @@ submitted bugfixes:</p>
|
|||||||
<li> Takashi Iwai</li>
|
<li> Takashi Iwai</li>
|
||||||
<li> Thomas Klausner</li>
|
<li> Thomas Klausner</li>
|
||||||
<li> Lu Zhihe</li>
|
<li> Lu Zhihe</li>
|
||||||
|
<li> Luzpaz</li>
|
||||||
<li> Tony Mechelynck </li>
|
<li> Tony Mechelynck </li>
|
||||||
<li> Mathias Möhl</li>
|
<li> Mathias Möhl</li>
|
||||||
<li> Yuval Naveh</li>
|
<li> Yuval Naveh</li>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
## Place - Suite 330, Boston, MA 02111-1307, USA
|
## Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
|
|
||||||
## These are common definitions used in all Makefiles
|
## These are common definitions used in all Makefiles
|
||||||
## It is actually included when a makefile.am is coverted to Makefile.in
|
## It is actually included when a makefile.am is converted to Makefile.in
|
||||||
## by automake, so it's ok to have @MACROS@ that will be set by configure
|
## by automake, so it's ok to have @MACROS@ that will be set by configure
|
||||||
|
|
||||||
AM_CPPFLAGS=-I$(top_srcdir)/include
|
AM_CPPFLAGS=-I$(top_srcdir)/include
|
||||||
|
@ -112,7 +112,7 @@ public:
|
|||||||
/// 'putSamples(numSamples)' function.
|
/// 'putSamples(numSamples)' function.
|
||||||
SAMPLETYPE *ptrEnd(
|
SAMPLETYPE *ptrEnd(
|
||||||
uint slackCapacity ///< How much free capacity (in samples) there _at least_
|
uint slackCapacity ///< How much free capacity (in samples) there _at least_
|
||||||
///< should be so that the caller can succesfully insert the
|
///< should be so that the caller can successfully insert the
|
||||||
///< desired samples to the buffer. If necessary, the function
|
///< desired samples to the buffer. If necessary, the function
|
||||||
///< grows the buffer size to comply with this requirement.
|
///< grows the buffer size to comply with this requirement.
|
||||||
);
|
);
|
||||||
|
@ -313,7 +313,7 @@ public:
|
|||||||
/// Changes a setting controlling the processing system behaviour. See the
|
/// Changes a setting controlling the processing system behaviour. See the
|
||||||
/// 'SETTING_...' defines for available setting ID's.
|
/// 'SETTING_...' defines for available setting ID's.
|
||||||
///
|
///
|
||||||
/// \return 'true' if the setting was succesfully changed
|
/// \return 'true' if the setting was successfully changed
|
||||||
bool setSetting(int settingId, ///< Setting ID number. see SETTING_... defines.
|
bool setSetting(int settingId, ///< Setting ID number. see SETTING_... defines.
|
||||||
int value ///< New setting value.
|
int value ///< New setting value.
|
||||||
);
|
);
|
||||||
|
@ -26,7 +26,7 @@ bin_PROGRAMS=soundstretch
|
|||||||
|
|
||||||
noinst_HEADERS=RunParameters.h WavFile.h
|
noinst_HEADERS=RunParameters.h WavFile.h
|
||||||
|
|
||||||
# extra files to include in distrubution tarball
|
# extra files to include in distribution tarball
|
||||||
EXTRA_DIST=soundstretch.dsp soundstretch.dsw soundstretch.sln soundstretch.vcproj
|
EXTRA_DIST=soundstretch.dsp soundstretch.dsw soundstretch.sln soundstretch.vcproj
|
||||||
|
|
||||||
## for every name listed under bin_PROGRAMS, you have a <prog>_SOURCES. This lists
|
## for every name listed under bin_PROGRAMS, you have a <prog>_SOURCES. This lists
|
||||||
|
@ -254,7 +254,7 @@ void BPMDetect::inputSamples(const SAMPLETYPE *samples, int numSamples)
|
|||||||
buffer->putSamples(decimated, decSamples);
|
buffer->putSamples(decimated, decSamples);
|
||||||
}
|
}
|
||||||
|
|
||||||
// when the buffer has enought samples for processing...
|
// when the buffer has enough samples for processing...
|
||||||
while ((int)buffer->numSamples() >= windowLen + xcorr_update_sequence)
|
while ((int)buffer->numSamples() >= windowLen + xcorr_update_sequence)
|
||||||
{
|
{
|
||||||
// ... calculate autocorrelations for oldest samples...
|
// ... calculate autocorrelations for oldest samples...
|
||||||
|
@ -124,7 +124,7 @@ void FIFOSampleBuffer::putSamples(uint nSamples)
|
|||||||
//
|
//
|
||||||
// Parameter 'slackCapacity' tells the function how much free capacity (in
|
// Parameter 'slackCapacity' tells the function how much free capacity (in
|
||||||
// terms of samples) there _at least_ should be, in order to the caller to
|
// terms of samples) there _at least_ should be, in order to the caller to
|
||||||
// succesfully insert all the required samples to the buffer. When necessary,
|
// successfully insert all the required samples to the buffer. When necessary,
|
||||||
// the function grows the buffer size to comply with this requirement.
|
// the function grows the buffer size to comply with this requirement.
|
||||||
//
|
//
|
||||||
// When using this function as means for inserting new samples, also remember
|
// When using this function as means for inserting new samples, also remember
|
||||||
@ -151,7 +151,7 @@ SAMPLETYPE *FIFOSampleBuffer::ptrBegin()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Ensures that the buffer has enought capacity, i.e. space for _at least_
|
// Ensures that the buffer has enough capacity, i.e. space for _at least_
|
||||||
// 'capacityRequirement' number of samples. The buffer is grown in steps of
|
// 'capacityRequirement' number of samples. The buffer is grown in steps of
|
||||||
// 4 kilobytes to eliminate the need for frequently growing up the buffer,
|
// 4 kilobytes to eliminate the need for frequently growing up the buffer,
|
||||||
// as well as to round the buffer size up to the virtual memory page size.
|
// as well as to round the buffer size up to the virtual memory page size.
|
||||||
|
@ -131,7 +131,7 @@ public:
|
|||||||
|
|
||||||
/// Use this function instead of "new" operator to create a new instance of this class.
|
/// Use this function instead of "new" operator to create a new instance of this class.
|
||||||
/// This function automatically chooses a correct implementation, depending on if
|
/// This function automatically chooses a correct implementation, depending on if
|
||||||
/// integer ot floating point arithmetics are to be used.
|
/// integer or floating point arithmetics are to be used.
|
||||||
// static RateTransposer *newInstance();
|
// static RateTransposer *newInstance();
|
||||||
|
|
||||||
/// Returns the output buffer object
|
/// Returns the output buffer object
|
||||||
|
@ -360,7 +360,7 @@ int TDStretch::seekBestOverlapPositionFull(const SAMPLETYPE *refPos)
|
|||||||
// with improved precision
|
// with improved precision
|
||||||
//
|
//
|
||||||
// Based on testing:
|
// Based on testing:
|
||||||
// - This algorithm gives on average 99% as good match as the full algorith
|
// - This algorithm gives on average 99% as good match as the full algorithm
|
||||||
// - this quick seek algorithm finds the best match on ~90% of cases
|
// - this quick seek algorithm finds the best match on ~90% of cases
|
||||||
// - on those 10% of cases when this algorithm doesn't find best match,
|
// - on those 10% of cases when this algorithm doesn't find best match,
|
||||||
// it still finds on average ~90% match vs. the best possible match
|
// it still finds on average ~90% match vs. the best possible match
|
||||||
@ -517,7 +517,7 @@ void TDStretch::clearCrossCorrState()
|
|||||||
void TDStretch::calcSeqParameters()
|
void TDStretch::calcSeqParameters()
|
||||||
{
|
{
|
||||||
// Adjust tempo param according to tempo, so that variating processing sequence length is used
|
// Adjust tempo param according to tempo, so that variating processing sequence length is used
|
||||||
// at varius tempo settings, between the given low...top limits
|
// at various tempo settings, between the given low...top limits
|
||||||
#define AUTOSEQ_TEMPO_LOW 0.5 // auto setting low tempo range (-50%)
|
#define AUTOSEQ_TEMPO_LOW 0.5 // auto setting low tempo range (-50%)
|
||||||
#define AUTOSEQ_TEMPO_TOP 2.0 // auto setting top tempo range (+100%)
|
#define AUTOSEQ_TEMPO_TOP 2.0 // auto setting top tempo range (+100%)
|
||||||
|
|
||||||
|
@ -304,7 +304,7 @@ SOUNDTOUCHDLL_API void __cdecl soundtouch_clear(HANDLE h)
|
|||||||
/// Changes a setting controlling the processing system behaviour. See the
|
/// Changes a setting controlling the processing system behaviour. See the
|
||||||
/// 'SETTING_...' defines for available setting ID's.
|
/// 'SETTING_...' defines for available setting ID's.
|
||||||
///
|
///
|
||||||
/// \return 'nonzero' if the setting was succesfully changed
|
/// \return 'nonzero' if the setting was successfully changed
|
||||||
SOUNDTOUCHDLL_API int __cdecl soundtouch_setSetting(HANDLE h,
|
SOUNDTOUCHDLL_API int __cdecl soundtouch_setSetting(HANDLE h,
|
||||||
int settingId, ///< Setting ID number. see SETTING_... defines.
|
int settingId, ///< Setting ID number. see SETTING_... defines.
|
||||||
int value ///< New setting value.
|
int value ///< New setting value.
|
||||||
@ -480,7 +480,7 @@ SOUNDTOUCHDLL_API void __cdecl bpm_putSamples(HANDLE h,
|
|||||||
|
|
||||||
|
|
||||||
/// Feed 'numSamples' sample frames from 'samples' into the BPM detection handler.
|
/// Feed 'numSamples' sample frames from 'samples' into the BPM detection handler.
|
||||||
/// 16bit int sample format verson.
|
/// 16bit int sample format version.
|
||||||
SOUNDTOUCHDLL_API void __cdecl bpm_putSamples_i16(HANDLE h,
|
SOUNDTOUCHDLL_API void __cdecl bpm_putSamples_i16(HANDLE h,
|
||||||
const short *samples,
|
const short *samples,
|
||||||
unsigned int numSamples)
|
unsigned int numSamples)
|
||||||
|
@ -153,7 +153,7 @@ SOUNDTOUCHDLL_API void __cdecl soundtouch_clear(HANDLE h);
|
|||||||
/// Changes a setting controlling the processing system behaviour. See the
|
/// Changes a setting controlling the processing system behaviour. See the
|
||||||
/// 'SETTING_...' defines for available setting ID's.
|
/// 'SETTING_...' defines for available setting ID's.
|
||||||
///
|
///
|
||||||
/// \return 'nonzero' if the setting was succesfully changed, otherwise zero
|
/// \return 'nonzero' if the setting was successfully changed, otherwise zero
|
||||||
SOUNDTOUCHDLL_API int __cdecl soundtouch_setSetting(HANDLE h,
|
SOUNDTOUCHDLL_API int __cdecl soundtouch_setSetting(HANDLE h,
|
||||||
int settingId, ///< Setting ID number. see SETTING_... defines.
|
int settingId, ///< Setting ID number. see SETTING_... defines.
|
||||||
int value ///< New setting value.
|
int value ///< New setting value.
|
||||||
@ -210,7 +210,7 @@ SOUNDTOUCHDLL_API void __cdecl bpm_putSamples(HANDLE h,
|
|||||||
);
|
);
|
||||||
|
|
||||||
/// Feed 'numSamples' sample frames from 'samples' into the BPM detector.
|
/// Feed 'numSamples' sample frames from 'samples' into the BPM detector.
|
||||||
/// 16bit int sample format verson.
|
/// 16bit int sample format version.
|
||||||
SOUNDTOUCHDLL_API void __cdecl bpm_putSamples_i16(HANDLE h,
|
SOUNDTOUCHDLL_API void __cdecl bpm_putSamples_i16(HANDLE h,
|
||||||
const short *samples, ///< Pointer to sample buffer.
|
const short *samples, ///< Pointer to sample buffer.
|
||||||
unsigned int numSamples ///< Number of samples in buffer. Notice
|
unsigned int numSamples ///< Number of samples in buffer. Notice
|
||||||
|
@ -114,7 +114,7 @@ type
|
|||||||
// Changes a setting controlling the processing system behaviour. See the
|
// Changes a setting controlling the processing system behaviour. See the
|
||||||
// 'SETTING_...' defines for available setting ID's.
|
// 'SETTING_...' defines for available setting ID's.
|
||||||
//
|
//
|
||||||
// \return 'TRUE' if the setting was succesfully changed
|
// \return 'TRUE' if the setting was successfully changed
|
||||||
TSoundTouchSetSetting = function (Handle: TSoundTouchHandle;
|
TSoundTouchSetSetting = function (Handle: TSoundTouchHandle;
|
||||||
SettingId: Integer; //< Setting ID number. see SETTING_... defines.
|
SettingId: Integer; //< Setting ID number. see SETTING_... defines.
|
||||||
Value: Integer //< New setting value.
|
Value: Integer //< New setting value.
|
||||||
|
@ -39,7 +39,7 @@ namespace csharp_example
|
|||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Display SoundTouch library version string in status bar. This also indicates whether the DLL was loaded succesfully or not ...
|
/// Display SoundTouch library version string in status bar. This also indicates whether the DLL was loaded successfully or not ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void DisplaySoundTouchVersion()
|
private void DisplaySoundTouchVersion()
|
||||||
{
|
{
|
||||||
|
@ -185,7 +185,7 @@ namespace csharp_example
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Start / resume playback
|
/// Start / resume playback
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>true if succesful, false if audio file not open</returns>
|
/// <returns>true if successful, false if audio file not open</returns>
|
||||||
public bool Play()
|
public bool Play()
|
||||||
{
|
{
|
||||||
if (waveOut == null) return false;
|
if (waveOut == null) return false;
|
||||||
@ -201,7 +201,7 @@ namespace csharp_example
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Pause playback
|
/// Pause playback
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>true if succesful, false if audio not playing</returns>
|
/// <returns>true if successful, false if audio not playing</returns>
|
||||||
public bool Pause()
|
public bool Pause()
|
||||||
{
|
{
|
||||||
if (waveOut == null) return false;
|
if (waveOut == null) return false;
|
||||||
@ -218,7 +218,7 @@ namespace csharp_example
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Stop playback
|
/// Stop playback
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>true if succesful, false if audio file not open</returns>
|
/// <returns>true if successful, false if audio file not open</returns>
|
||||||
public bool Stop()
|
public bool Stop()
|
||||||
{
|
{
|
||||||
if (waveOut == null) return false;
|
if (waveOut == null) return false;
|
||||||
@ -238,7 +238,7 @@ namespace csharp_example
|
|||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Proxy event handler for receiving playback stoped event from WaveOut
|
/// Proxy event handler for receiving playback stopped event from WaveOut
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected void EventHandler_stopped(object sender, StoppedEventArgs args)
|
protected void EventHandler_stopped(object sender, StoppedEventArgs args)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user