sndstream.h

来自「DC的SEGA_GG模拟器源代码」· C头文件 代码 · 共 50 行

H
50
字号
/*
 * sndstream.h - SH-4 support routines for SPU streaming sound driver
 *
 * (C) 2000 Dan Potter
 *
 * $Id: sndstream.h,v 1.4 2001/02/05 00:23:46 bard Exp $
 */

#ifndef __SNDSTREAM_H
#define __SNDSTREAM_H

#include "arm/aica_cmd_iface.h"

/* Load sample data from SH-4 ram into SPU ram (auto-allocate RAM) */
uint32 stream_load_sample(const uint16 *src, uint32 len);

/* Dump all loaded sample data */
void stream_dump_samples();

/* Set "get data" callback */
void stream_set_callback(void *(*func)(int));

/* Prefill buffers -- do this before calling start() */
void stream_prefill();

/* Initialize stream system */
int kos_stream_init(void* (*callback)(int));

/* Shut everything down and free mem */
void stream_shutdown();

/* Start streaming */
void stream_start();

/* Stop streaming */
void stream_stop();

/* Poll streamer to load more data if neccessary; zero if ok, -1 if the
   poll function returns NULL. */
int stream_poll();

/* Start a sound sample on the given channel */
void stream_play_effect(int chn, uint32 src, uint32 freq, uint32 len, uint32 vol, uint32 pan);

/* Stop a sound sample on the given channel */
void stream_stop_effect(int chn);

#endif	/* __SNDSTREAM_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?