Skip to content

Commit

Permalink
Fixing C API not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
neXyon committed Oct 10, 2016
1 parent c384daf commit 817043c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bindings/C/AUD_Sound.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ extern AUD_API AUD_Sound* AUD_Sound_rechannel(AUD_Sound* sound, AUD_Channels cha
* \param high_quality When true use a higher quality but slower resampler.
* \return The resampled sound.
*/
extern AUD_API AUD_Sound* AUD_Sound_resample(AUD_Sound* sound, AUD_SampleRate rate, bool high_quality = false);
extern AUD_API AUD_Sound* AUD_Sound_resample(AUD_Sound* sound, AUD_SampleRate rate, bool high_quality);

/**
* Reverses a sound. Make sure the sound source can be reversed.
Expand Down
4 changes: 4 additions & 0 deletions bindings/C/AUD_Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

#include "Audaspace.h"

#ifdef __cplusplus
using namespace aud;
#endif

#ifdef AUD_CAPI_IMPLEMENTATION
#include "ISound.h"
#include "devices/IHandle.h"
Expand Down
12 changes: 10 additions & 2 deletions config/Audaspace.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@
/// Closes the audaspace namespace aud.
#define AUD_NAMESPACE_END }

#else

/// Opens the audaspace namespace aud.
#define AUD_NAMESPACE_BEGIN

/// Closes the audaspace namespace aud.
#define AUD_NAMESPACE_END

#endif

AUD_NAMESPACE_BEGIN

/// Sample type.(float samples)
Expand All @@ -119,5 +129,3 @@ typedef float sample_t;
typedef unsigned char data_t;

AUD_NAMESPACE_END

#endif

0 comments on commit 817043c

Please sign in to comment.