Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 458932 | Differences between
and this patch

Collapse All | Expand All

(-)libaacplus-2.0.2.orig/frontend/au_channel.h (-4 / +4 lines)
Lines 12-18 Link Here
12
	int	aFmt;
12
	int	aFmt;
13
} WavInfo;
13
} WavInfo;
14
14
15
inline FILE* AuChannelOpen (const char* filename, WavInfo* info)
15
static inline FILE* AuChannelOpen (const char* filename, WavInfo* info)
16
{
16
{
17
	unsigned char header[12];
17
	unsigned char header[12];
18
	unsigned char data[WAV_HEADER_SIZE];
18
	unsigned char data[WAV_HEADER_SIZE];
Lines 48-65 Link Here
48
	return handle;
48
	return handle;
49
}
49
}
50
50
51
inline void AuChannelClose (FILE *audioChannel)
51
static inline void AuChannelClose (FILE *audioChannel)
52
{
52
{
53
	fclose(audioChannel);
53
	fclose(audioChannel);
54
}
54
}
55
55
56
inline size_t AuChannelReadShort(FILE *audioChannel, short *samples, int nSamples, int *readed)
56
static inline size_t AuChannelReadShort(FILE *audioChannel, short *samples, int nSamples, int *readed)
57
{
57
{
58
	*readed = fread(samples, 2, nSamples, audioChannel);
58
	*readed = fread(samples, 2, nSamples, audioChannel);
59
	return *readed <= 0;
59
	return *readed <= 0;
60
}
60
}
61
61
62
inline size_t AuChannelReadFloat(FILE *audioChannel, float *samples, int nSamples, int *readed)
62
static inline size_t AuChannelReadFloat(FILE *audioChannel, float *samples, int nSamples, int *readed)
63
{
63
{
64
	*readed = fread(samples, 4, nSamples, audioChannel);
64
	*readed = fread(samples, 4, nSamples, audioChannel);
65
	return *readed <= 0;
65
	return *readed <= 0;

Return to bug 458932