delete inline in frontend/au_channel.h
https://stackoverflow.com/questions/20762088/build-libaacplus-on-mac-os-10-9#34718904 Actually the "AuChannelOpen" method was implement in frontend/au_channel.h file, but it was a "inline" method. I think that the Makefile disabled the "inline" feature, so simple solutions: enable "inline". delete all "inline" words in au_channel.h file. and if you just need the static library without the program, you can commit the line where call this function in frontend/main.c. ./autogen.sh --with-fftw3 --with-parameter-expansion-string-replace-capable-shell=/bin/bash
This commit is contained in:
parent
ad5143f78d
commit
82ba90838d
|
@ -12,7 +12,7 @@ typedef struct {
|
||||||
int aFmt;
|
int aFmt;
|
||||||
} WavInfo;
|
} WavInfo;
|
||||||
|
|
||||||
inline FILE* AuChannelOpen (const char* filename, WavInfo* info)
|
FILE* AuChannelOpen (const char* filename, WavInfo* info)
|
||||||
{
|
{
|
||||||
unsigned char header[12];
|
unsigned char header[12];
|
||||||
unsigned char data[WAV_HEADER_SIZE];
|
unsigned char data[WAV_HEADER_SIZE];
|
||||||
|
@ -48,18 +48,18 @@ inline FILE* AuChannelOpen (const char* filename, WavInfo* info)
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void AuChannelClose (FILE *audioChannel)
|
void AuChannelClose (FILE *audioChannel)
|
||||||
{
|
{
|
||||||
fclose(audioChannel);
|
fclose(audioChannel);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline size_t AuChannelReadShort(FILE *audioChannel, short *samples, int nSamples, int *readed)
|
size_t AuChannelReadShort(FILE *audioChannel, short *samples, int nSamples, int *readed)
|
||||||
{
|
{
|
||||||
*readed = fread(samples, 2, nSamples, audioChannel);
|
*readed = fread(samples, 2, nSamples, audioChannel);
|
||||||
return *readed <= 0;
|
return *readed <= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline size_t AuChannelReadFloat(FILE *audioChannel, float *samples, int nSamples, int *readed)
|
size_t AuChannelReadFloat(FILE *audioChannel, float *samples, int nSamples, int *readed)
|
||||||
{
|
{
|
||||||
*readed = fread(samples, 4, nSamples, audioChannel);
|
*readed = fread(samples, 4, nSamples, audioChannel);
|
||||||
return *readed <= 0;
|
return *readed <= 0;
|
||||||
|
|
Loading…
Reference in New Issue