SDL
2.0
|
Go to the source code of this file.
Functions | |
SDL_DataQueue * | SDL_NewDataQueue (const size_t packetlen, const size_t initialslack) |
void | SDL_FreeDataQueue (SDL_DataQueue *queue) |
void | SDL_ClearDataQueue (SDL_DataQueue *queue, const size_t slack) |
int | SDL_WriteToDataQueue (SDL_DataQueue *queue, const void *data, const size_t len) |
size_t | SDL_ReadFromDataQueue (SDL_DataQueue *queue, void *buf, const size_t len) |
size_t | SDL_PeekIntoDataQueue (SDL_DataQueue *queue, void *buf, const size_t len) |
size_t | SDL_CountDataQueue (SDL_DataQueue *queue) |
void * | SDL_ReserveSpaceInDataQueue (SDL_DataQueue *queue, const size_t len) |
void SDL_ClearDataQueue | ( | SDL_DataQueue * | queue, |
const size_t | slack | ||
) |
Definition at line 98 of file SDL_dataqueue.c.
References SDL_DataQueue::head, i, SDL_DataQueuePacket::next, NULL, SDL_DataQueue::packet_size, SDL_DataQueue::pool, SDL_DataQueue::queued_bytes, SDL_FreeDataQueueList(), and SDL_DataQueue::tail.
Referenced by SDL_AudioStreamClear(), and SDL_ClearQueuedAudio().
size_t SDL_CountDataQueue | ( | SDL_DataQueue * | queue | ) |
Definition at line 294 of file SDL_dataqueue.c.
References SDL_DataQueue::queued_bytes.
Referenced by SDL_AudioStreamAvailable(), SDL_BufferQueueDrainCallback(), and SDL_GetQueuedAudioSize().
void SDL_FreeDataQueue | ( | SDL_DataQueue * | queue | ) |
Definition at line 88 of file SDL_dataqueue.c.
References SDL_DataQueue::head, SDL_DataQueue::pool, SDL_free, and SDL_FreeDataQueueList().
Referenced by close_audio_device(), and SDL_FreeAudioStream().
SDL_DataQueue* SDL_NewDataQueue | ( | const size_t | packetlen, |
const size_t | initialslack | ||
) |
Definition at line 58 of file SDL_dataqueue.c.
References SDL_DataQueuePacket::datalen, i, SDL_DataQueuePacket::next, NULL, SDL_DataQueue::packet_size, SDL_DataQueue::pool, SDL_malloc, SDL_OutOfMemory, SDL_zerop, and SDL_DataQueuePacket::startpos.
Referenced by open_audio_device(), and SDL_NewAudioStream().
size_t SDL_PeekIntoDataQueue | ( | SDL_DataQueue * | queue, |
void * | buf, | ||
const size_t | len | ||
) |
Definition at line 229 of file SDL_dataqueue.c.
References SDL_DataQueuePacket::data, SDL_DataQueuePacket::datalen, SDL_DataQueue::head, SDL_DataQueuePacket::next, SDL_DataQueue::queued_bytes, SDL_assert, SDL_memcpy, SDL_min, and SDL_DataQueuePacket::startpos.
size_t SDL_ReadFromDataQueue | ( | SDL_DataQueue * | queue, |
void * | buf, | ||
const size_t | len | ||
) |
Definition at line 254 of file SDL_dataqueue.c.
References SDL_DataQueuePacket::data, SDL_DataQueuePacket::datalen, SDL_DataQueue::head, SDL_DataQueuePacket::next, NULL, SDL_DataQueue::pool, SDL_DataQueue::queued_bytes, SDL_assert, SDL_memcpy, SDL_min, SDL_DataQueuePacket::startpos, and SDL_DataQueue::tail.
Referenced by SDL_AudioStreamGet(), SDL_BufferQueueDrainCallback(), and SDL_DequeueAudio().
void* SDL_ReserveSpaceInDataQueue | ( | SDL_DataQueue * | queue, |
const size_t | len | ||
) |
Definition at line 300 of file SDL_dataqueue.c.
References AllocateDataQueuePacket(), SDL_DataQueuePacket::data, SDL_DataQueuePacket::datalen, SDL_DataQueue::head, NULL, SDL_DataQueue::packet_size, SDL_DataQueue::queued_bytes, retval, SDL_InvalidParamError, SDL_OutOfMemory, and SDL_SetError.
int SDL_WriteToDataQueue | ( | SDL_DataQueue * | queue, |
const void * | data, | ||
const size_t | len | ||
) |
Definition at line 175 of file SDL_dataqueue.c.
References AllocateDataQueuePacket(), SDL_DataQueuePacket::data, SDL_DataQueuePacket::datalen, SDL_DataQueue::head, SDL_DataQueuePacket::next, NULL, SDL_DataQueue::packet_size, SDL_DataQueue::pool, SDL_DataQueue::queued_bytes, SDL_assert, SDL_FreeDataQueueList(), SDL_InvalidParamError, SDL_memcpy, SDL_min, SDL_OutOfMemory, and SDL_DataQueue::tail.
Referenced by SDL_AudioStreamPut(), SDL_AudioStreamPutInternal(), SDL_BufferQueueFillCallback(), and SDL_QueueAudio().