19 #ifndef __DC_SOUND_STREAM_H
20 #define __DC_SOUND_STREAM_H
22 #include <sys/cdefs.h>
28 #define SND_STREAM_MAX 4
31 #define SND_STREAM_BUFFER_MAX 0x10000
45 #define SND_STREAM_INVALID -1
94 int channels,
void **buffer,
void *(* snd_stream_callback_t)(snd_stream_hnd_t hnd, int smp_req, int *smp_recv)
Stream get data callback type.
Definition: stream.h:58
void snd_stream_volume(snd_stream_hnd_t hnd, int vol)
Set the volume on the stream.
void snd_stream_stop(snd_stream_hnd_t hnd)
Stop a stream.
void(* snd_stream_filter_t)(snd_stream_hnd_t hnd, void *obj, int hz, int channels, void **buffer, int *samplecnt)
Stream filter callback type.
Definition: stream.h:93
int snd_stream_reinit(snd_stream_hnd_t hnd, snd_stream_callback_t cb)
Reinitialize a stream.
void snd_stream_queue_enable(snd_stream_hnd_t hnd)
Enable queueing on a stream.
void snd_stream_prefill(snd_stream_hnd_t hnd)
Prefill the stream buffers.
void snd_stream_start(snd_stream_hnd_t hnd, uint32 freq, int st)
Start a stream.
void snd_stream_filter_remove(snd_stream_hnd_t hnd, snd_stream_filter_t filtfunc, void *obj)
Remove a filter from the specified stream.
void snd_stream_set_callback(snd_stream_hnd_t hnd, snd_stream_callback_t cb)
Set the callback for a given stream.
unsigned long uint32
32-bit unsigned integer
Definition: types.h:28
snd_stream_hnd_t snd_stream_alloc(snd_stream_callback_t cb, int bufsize)
Allocate a stream.
void snd_stream_filter_add(snd_stream_hnd_t hnd, snd_stream_filter_t filtfunc, void *obj)
Add a filter to the specified stream.
void snd_stream_queue_disable(snd_stream_hnd_t hnd)
Disable queueing on a stream.
int snd_stream_init()
Initialize the stream system.
void snd_stream_shutdown()
Shut down the stream system.
int snd_stream_hnd_t
Stream handle type.
Definition: stream.h:39
void snd_stream_destroy(snd_stream_hnd_t hnd)
Destroy a stream.
void snd_stream_queue_go(snd_stream_hnd_t hnd)
Start a stream after queueing the request.
int snd_stream_poll(snd_stream_hnd_t hnd)
Poll a stream.