mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Added some missing "extern" declarations
This commit is contained in:
parent
f40bd5ee24
commit
8b660c5046
@ -71,8 +71,8 @@ extern SDL_AudioFilter SDL_Convert_F32_to_S32;
|
|||||||
|
|
||||||
/* You need to call SDL_PrepareResampleFilter() before using the internal resampler.
|
/* You need to call SDL_PrepareResampleFilter() before using the internal resampler.
|
||||||
SDL_AudioQuit() calls SDL_FreeResamplerFilter(), you should never call it yourself. */
|
SDL_AudioQuit() calls SDL_FreeResamplerFilter(), you should never call it yourself. */
|
||||||
int SDL_PrepareResampleFilter(void);
|
extern int SDL_PrepareResampleFilter(void);
|
||||||
void SDL_FreeResampleFilter(void);
|
extern void SDL_FreeResampleFilter(void);
|
||||||
|
|
||||||
|
|
||||||
/* SDL_AudioStream is a new audio conversion interface. It
|
/* SDL_AudioStream is a new audio conversion interface. It
|
||||||
@ -92,7 +92,7 @@ void SDL_FreeResampleFilter(void);
|
|||||||
typedef struct SDL_AudioStream SDL_AudioStream;
|
typedef struct SDL_AudioStream SDL_AudioStream;
|
||||||
|
|
||||||
/* create a new stream */
|
/* create a new stream */
|
||||||
SDL_AudioStream *SDL_NewAudioStream(const SDL_AudioFormat src_format,
|
extern SDL_AudioStream *SDL_NewAudioStream(const SDL_AudioFormat src_format,
|
||||||
const Uint8 src_channels,
|
const Uint8 src_channels,
|
||||||
const int src_rate,
|
const int src_rate,
|
||||||
const SDL_AudioFormat dst_format,
|
const SDL_AudioFormat dst_format,
|
||||||
@ -100,20 +100,20 @@ SDL_AudioStream *SDL_NewAudioStream(const SDL_AudioFormat src_format,
|
|||||||
const int dst_rate);
|
const int dst_rate);
|
||||||
|
|
||||||
/* add data to be converted/resampled to the stream */
|
/* add data to be converted/resampled to the stream */
|
||||||
int SDL_AudioStreamPut(SDL_AudioStream *stream, const void *buf, const Uint32 len);
|
extern int SDL_AudioStreamPut(SDL_AudioStream *stream, const void *buf, const Uint32 len);
|
||||||
|
|
||||||
/* get converted/resampled data from the stream */
|
/* get converted/resampled data from the stream */
|
||||||
int SDL_AudioStreamGet(SDL_AudioStream *stream, void *buf, const Uint32 len);
|
extern int SDL_AudioStreamGet(SDL_AudioStream *stream, void *buf, const Uint32 len);
|
||||||
|
|
||||||
/* clear any pending data in the stream without converting it. */
|
/* clear any pending data in the stream without converting it. */
|
||||||
void SDL_AudioStreamClear(SDL_AudioStream *stream);
|
extern void SDL_AudioStreamClear(SDL_AudioStream *stream);
|
||||||
|
|
||||||
/* number of converted/resampled bytes available */
|
/* number of converted/resampled bytes available */
|
||||||
int SDL_AudioStreamAvailable(SDL_AudioStream *stream);
|
extern int SDL_AudioStreamAvailable(SDL_AudioStream *stream);
|
||||||
|
|
||||||
/* dispose of a stream */
|
/* dispose of a stream */
|
||||||
void SDL_FreeAudioStream(SDL_AudioStream *stream);
|
extern void SDL_FreeAudioStream(SDL_AudioStream *stream);
|
||||||
|
|
||||||
#endif
|
#endif /* SDL_audio_c_h_ */
|
||||||
|
|
||||||
/* vi: set ts=4 sw=4 expandtab: */
|
/* vi: set ts=4 sw=4 expandtab: */
|
||||||
|
Loading…
Reference in New Issue
Block a user