Skip to content

Commit dcdc071

Browse files
committed
Small C compatibility fix.
1 parent 6002a0e commit dcdc071

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

DynamicAudioNormalizerAPI/include/DynamicAudioNormalizer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
class MDynamicAudioNormalizer_PrivateData;
7373

7474
//Callback for log messages
75-
typedef void (MDYNAMICAUDIONORMALIZER_FUNCTION(LogFunction))(const int &logLevel, const char *const message);
75+
typedef void (MDYNAMICAUDIONORMALIZER_FUNCTION(LogFunction))(const int logLevel, const char *const message);
7676

7777
//Dynamic Normalizer Class
7878
class MDYNAMICAUDIONORMALIZER_DLL MDynamicAudioNormalizer

DynamicAudioNormalizerAPI/src/Logging.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#pragma once
2424

25-
typedef void (DYNAUDNORM_LOG_CALLBACK)(const int &logLevel, const char *const message);
25+
typedef void (DYNAUDNORM_LOG_CALLBACK)(const int logLevel, const char *const message);
2626
DYNAUDNORM_LOG_CALLBACK * DYNAUDNORM_LOG_SETCALLBACK(DYNAUDNORM_LOG_CALLBACK *const callback);
2727
void DYNAUDNORM_LOG_POSTMESSAGE(const int &logLevel, const char *const message, ...);
2828

DynamicAudioNormalizerCLI/src/Main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static const CHR *timeToString(CHR *timeBuffer, const size_t buffSize, const int
7272
return timeBuffer;
7373
}
7474

75-
static void loggingCallback_default(const int &logLevel, const char *const message)
75+
static void loggingCallback_default(const int logLevel, const char *const message)
7676
{
7777
switch(logLevel)
7878
{
@@ -85,7 +85,7 @@ static void loggingCallback_default(const int &logLevel, const char *const messa
8585
}
8686
}
8787

88-
static void loggingCallback_verbose(const int &logLevel, const char *const message)
88+
static void loggingCallback_verbose(const int logLevel, const char *const message)
8989
{
9090
switch(logLevel)
9191
{
@@ -348,7 +348,7 @@ static void printLogo(void)
348348

349349
if(DYNAUDNORM_DEBUG)
350350
{
351-
PRINT(TXT("\n!!! DEBUG BUILD !!! DEBUG BUILD !!! DEBUG BUILD !!! DEBUG BUILD !!!\n\n"));
351+
PRINT(TXT("\n!!! DEBUG BUILD !!! DEBUG BUILD !!! DEBUG BUILD !!! DEBUG BUILD !!!\n"));
352352
}
353353

354354
PRINT(TXT("---------------------------------------------------------------------------\n\n"));

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ This *static* function can be called to register a *callback* function that will
290290
The signature of the callback function must be *exactly* as follows, with standard <tt>cdecl</tt> calling convention:
291291
```
292292
void LogFunction(
293-
const int &logLevel,
293+
const int logLevel,
294294
const char *const message
295295
);
296296
```
@@ -307,7 +307,9 @@ The source code of the Dynamic Audio Normalizer is available from the official [
307307
* <tt>https://bitbucket.org/lord_mulder/dynamic-audio-normalizer.git</tt> &nbsp; ([Browse](https://bitbucket.org/lord_mulder/dynamic-audio-normalizer/overview))
308308
* <tt>https://git.gitorious.org/dynamic-audio-normalizer/dynamic-audio-normalizer.git</tt> &nbsp; ([Browse](https://gitorious.org/dynamic-audio-normalizer/dynamic-audio-normalizer))
309309

310-
Currently project/solution files are provided for Microsoft Visual Studio 2013. The code can be built using, e.g, *Visual Studio Express 2013 for Windows Desktop*, which is available as a free download [here](http://www.visualstudio.com/downloads/download-visual-studio-vs).
310+
Project/solution files are provided for Microsoft Visual Studio. The code can be built using, e.g, *Visual Studio Express 2013 for Windows Desktop*, which is available as a free download [here](http://www.visualstudio.com/downloads/download-visual-studio-vs).
311+
312+
Furthermore, Makefiles for the Linux platform are provided. They have been tested under Ubuntu 14.04.1 LTS using GCC 4.8.2.
311313

312314

313315
Changelog <a name="chap_log"></a>
@@ -320,7 +322,7 @@ Changelog <a name="chap_log"></a>
320322
* Added new <tt>flushBuffer()</tt> API, which provides a cleaner method of flushing the pending frames
321323
* Added new <tt>reset()</tt> API, which can be used to reset the internal state of the normalizer instance
322324
* Added new <tt>setLogFunction</tt> API, which can be used to set up a custom logging callback function
323-
* There should be **no** changes of the normalized audio output in this release
325+
* There should be **no** changes of the normalized audio output in this release whatsoever
324326

325327
### Version 1.03 (2014-07-09) ###
326328
* Added *static* library configuration to Visual Studio solution

0 commit comments

Comments
 (0)