head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.42 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.40 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.38 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.36 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.34 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.32 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.30 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.28 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.26 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.24 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.22 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.20 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.18 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.16 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.14 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.12 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.10 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.8 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.6 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.4 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.2 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.3.0.10 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.8 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.6 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.4 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.3.0.2 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.1.1.1.0.4 pkgsrc-2003Q4-base:1.1.1.1 netbsd-1-6-1:1.1.1.1.0.2 netbsd-1-6-1-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.4 date 2005.06.02.14.24.04; author blymn; state dead; branches; next 1.3; 1.3 date 2003.12.31.03.10.39; author xtraeme; state Exp; branches; next 1.2; 1.2 date 2003.12.13.10.32.53; author xtraeme; state dead; branches; next 1.1; 1.1 date 2002.09.24.12.49.13; author blymn; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2002.09.24.12.49.13; author blymn; state Exp; branches; next ; desc @@ 1.4 log @Updated to version 2.0.2 of bzflag: * many many bug fixes * network protocol version updated * new game modes added @ text @$NetBSD: patch-af,v 1.3 2003/12/31 03:10:39 xtraeme Exp $ --- src/bzadmin/StdBothUI.cxx.orig Tue Dec 9 08:38:14 2003 +++ src/bzadmin/StdBothUI.cxx Wed Dec 31 02:55:48 2003 @@@@ -20,6 +20,7 @@@@ #include #include #else +#include #include #endif @ 1.3 log @Add to fix building on FreeBSD 4.x, from Michal Pasternak in PR pkg/23934. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Updated to 1.10.0. The ChangeLog is huge. Selected new features include: * vote based kicking * tunable game parameters like gravity and world size * smarter bots * world weapons * bzadmin text client * autopilot * rabbit game style * single port networking And more... please review Changelog for a detailed list of changes. pkgsrc changes: o USE_X11BASE not needed anymore. I'm sorry, only tested on NetBSD/FreeBSD x86, I need more hardware... @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.1 2002/09/24 12:49:13 blymn Exp $ d3 9 a11 82 --- src/platform/NetBSDMedia.h.orig Sun Sep 22 22:29:02 2002 +++ src/platform/NetBSDMedia.h @@@@ -0,0 +1,79 @@@@ +/* bzflag + * Copyright (c) 1993 - 2002 Tim Riker + * + * This package is free software; you can redistribute it and/or + * modify it under the terms of the license found in the file + * named LICENSE that should have accompanied this file. + * + * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +/* NetBSDMedia: + * Media I/O on NetBSD + */ + +#ifndef BZF_NETBSDMEDIA_H +#define BZF_NETBSDMEDIA_H + +#include "BzfMedia.h" +#include +#include + +class NetBSDMedia : public BzfMedia { + public: + NetBSDMedia(); + ~NetBSDMedia(); + + double stopwatch(boolean); + void sleep(float); + boolean openAudio(); + void closeAudio(); + boolean startAudioThread(void (*)(void*), void*); + void stopAudioThread(); + boolean hasAudioThread() const; + void writeSoundCommand(const void*, int); + boolean readSoundCommand(void*, int); + int getAudioOutputRate() const; + int getAudioBufferSize() const; + int getAudioBufferChunkSize() const; + boolean isAudioTooEmpty() const; + void writeAudioFrames(const float* samples, int numFrames); + void audioSleep(boolean checkLowWater, double maxTime); + + private: + boolean checkForAudioHardware(); + boolean openAudioHardware(); + boolean openIoctl(int cmd, void* value, boolean req = True); + static void audioThreadInit(void*); + + void writeAudioFrames8Bit( + const float* samples, int numFrames); + void writeAudioFrames16Bit( + const float* samples, int numFrames); + + static double getTime(); + + private: + boolean audioReady; + int audioOutputRate; + int audioBufferSize; + int audioLowWaterMark; + int maxFd; + int audioPortFd; + int queueIn, queueOut; + short* outputBuffer; + pid_t childProcID; + double stopwatchTime; + boolean audio8Bit; + + boolean noSetFragment; + boolean getospaceBroken; + int chunksPending; + double chunkTime; + double chunksPerSecond; +}; + +#endif // BZF_NETBSDMEDIA_H +// ex: shiftwidth=2 tabstop=8 @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @bzflag is an OpenGL based multiplayer tank game. @ text @@