forked from kgoba/ft8_lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added extern C around function prototypes for C++ compatibility
- Loading branch information
Karlis Goba
committed
Apr 23, 2022
1 parent
cd0dc2e
commit 7d534db
Showing
9 changed files
with
243 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
#ifndef _INCLUDE_WAVE_H_ | ||
#define _INCLUDE_WAVE_H_ | ||
|
||
// Save signal in floating point format (-1 .. +1) as a WAVE file using 16-bit signed integers. | ||
void save_wav(const float* signal, int num_samples, int sample_rate, const char* path); | ||
#ifdef __cplusplus | ||
extern "C" | ||
{ | ||
#endif | ||
|
||
// Load signal in floating point format (-1 .. +1) as a WAVE file using 16-bit signed integers. | ||
int load_wav(float* signal, int* num_samples, int* sample_rate, const char* path); | ||
// Save signal in floating point format (-1 .. +1) as a WAVE file using 16-bit signed integers. | ||
void save_wav(const float* signal, int num_samples, int sample_rate, const char* path); | ||
|
||
// Load signal in floating point format (-1 .. +1) as a WAVE file using 16-bit signed integers. | ||
int load_wav(float* signal, int* num_samples, int* sample_rate, const char* path); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // _INCLUDE_WAVE_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.