代码搜索结果
找到约 10,000 项符合
Sound 的代码
sound.cpp
/********************************************************************
* Advanced 3D Game Programming using DirectX 9.0 *
*****************************************************************
sound.h
/********************************************************************
* Advanced 3D Game Programming using DirectX 9.0 *
*****************************************************************
sound.cpp
#include "..\..\lib\Fly3D.h"
#include "gamelib.h"
void dyn_sound::play()
{
if (instance!=-1)
snd->buf[instance]->Play(0,0,loop?DSBPLAY_LOOPING:0);
}
dyn_sound::dyn_sound()
{
type=TYPE
sound.h
class dyn_sound : public bsp_object
{
public:
sound *snd;
int instance;
vector *lockpos,*lockvel;
int volume,loop;
float mindist,maxdist;
dyn_sound();
virtual ~dyn_sound();
i
sound.c
/* sound.c, HAWK game engine
*
* Copyright 1997-1998 by Phil Frisbie, Jr.
* for Hawk Software
*
*/
#include
#include
#include "wave.h"
#include "internal.h"
#include
sound.h
/* win32/sound.h, HAWK game engine
*
* Copyright 1997-1998 by Phil Frisbie, Jr.
* for Hawk Software
*
*/
#ifndef SOUND_H
#define SOUND_H
#include
#include
#
sound.xbm
#define sound_width 20
#define sound_height 23
static char sound_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x07, 0x01, 0x00, 0x0c,
0x01, 0x40, 0x0c, 0x01, 0x91, 0x0c, 0x81, 0x21
sound.conf
[System]
sound.desktop
[Desktop Entry]
Type=Application
Exec=sound
Icon=Sound
Name=Sound
Name[ja]=サウンド
Name[zh_CN]=声音
CanFastload=0