⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sndstream.h

📁 DC的SEGA_GG模拟器源代码
💻 H
字号:
/*
 * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -