cleanup
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/* CodeDetector Uses InputQueue to detect input of codes. */
|
||||
/* CodeDetector - Uses InputQueue to detect input of codes. */
|
||||
|
||||
#ifndef CODEDETECTOR_H
|
||||
#define CODEDETECTOR_H
|
||||
#ifndef CODE_DETECTOR_H
|
||||
#define CODE_DETECTOR_H
|
||||
|
||||
#include "GameInput.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* FadingBanner Fades between two banners. */
|
||||
/* FadingBanner - Fades between two banners. */
|
||||
|
||||
#ifndef FADING_BANNER_H
|
||||
#define FADING_BANNER_H
|
||||
|
||||
@@ -1,35 +1,35 @@
|
||||
/*
|
||||
* RageSoundReader_Vorbisfile - Read from a Vorbisfile interface
|
||||
*/
|
||||
/* RageSoundReader_Vorbisfile - Read from a Vorbisfile interface. */
|
||||
|
||||
#ifndef RAGE_SOUND_READER_VORBISFILE
|
||||
#define RAGE_SOUND_READER_VORBISFILE
|
||||
#ifndef RAGE_SOUND_READER_VORBISFILE_H
|
||||
#define RAGE_SOUND_READER_VORBISFILE_H
|
||||
|
||||
#include "RageSoundReader_FileReader.h"
|
||||
|
||||
typedef struct OggVorbis_File OggVorbis_File;
|
||||
|
||||
class RageSoundReader_Vorbisfile: public SoundReader_FileReader {
|
||||
OggVorbis_File *vf;
|
||||
bool eof;
|
||||
int SetPosition(int ms, bool accurate);
|
||||
bool FillBuf();
|
||||
CString filename;
|
||||
int read_offset;
|
||||
unsigned channels;
|
||||
|
||||
class RageSoundReader_Vorbisfile: public SoundReader_FileReader
|
||||
{
|
||||
public:
|
||||
OpenResult Open(CString filename);
|
||||
int GetLength() const;
|
||||
int GetLength_Fast() const;
|
||||
int SetPosition_Accurate(int ms) { return SetPosition(ms, true); }
|
||||
int SetPosition_Fast(int ms) { return SetPosition(ms, false); }
|
||||
int SetPosition_Accurate(int ms) { return SetPosition( ms, true ); }
|
||||
int SetPosition_Fast(int ms) { return SetPosition( ms, false ); }
|
||||
int Read(char *buf, unsigned len);
|
||||
int GetSampleRate() const;
|
||||
unsigned GetNumChannels() const { return channels; }
|
||||
RageSoundReader_Vorbisfile();
|
||||
~RageSoundReader_Vorbisfile();
|
||||
SoundReader *Copy() const;
|
||||
|
||||
private:
|
||||
OggVorbis_File *vf;
|
||||
bool eof;
|
||||
int SetPosition( int ms, bool accurate );
|
||||
bool FillBuf();
|
||||
CString filename;
|
||||
int read_offset;
|
||||
unsigned channels;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,24 @@
|
||||
/*
|
||||
* This can be used in two ways: as a timestamp or as a timer.
|
||||
*
|
||||
* As a timer,
|
||||
* RageTimer Timer;
|
||||
* while(1) {
|
||||
* printf( "Will be approximately: %f", Timer.PeekDeltaTime()) ;
|
||||
* float fDeltaTime = Timer.GetDeltaTime();
|
||||
* }
|
||||
*
|
||||
* or as a timestamp:
|
||||
* void foo( RageTimer ×tamp ) {
|
||||
* if( timestamp.IsZero() )
|
||||
* printf( "The timestamp isn't set." );
|
||||
* else
|
||||
* printf( "The timestamp happened %f ago", timestamp.Ago() );
|
||||
* timestamp.Touch();
|
||||
* printf( "Near zero: %f", timestamp.Age() );
|
||||
* }
|
||||
*/
|
||||
|
||||
#include "global.h"
|
||||
|
||||
#include "RageTimer.h"
|
||||
|
||||
@@ -1,28 +1,8 @@
|
||||
/* RageTimer - Timer services */
|
||||
/* RageTimer - Timer services. */
|
||||
|
||||
#ifndef RAGE_TIMER_H
|
||||
#define RAGE_TIMER_H
|
||||
|
||||
/*
|
||||
* This can be used in two ways: as a timestamp or as a timer.
|
||||
*
|
||||
* As a timer,
|
||||
* RageTimer Timer;
|
||||
* while(1) {
|
||||
* printf( "Will be approximately: %f", Timer.PeekDeltaTime()) ;
|
||||
* float fDeltaTime = Timer.GetDeltaTime();
|
||||
* }
|
||||
*
|
||||
* or as a timestamp:
|
||||
* void foo( RageTimer ×tamp ) {
|
||||
* if( timestamp.IsZero() )
|
||||
* printf( "The timestamp isn't set." );
|
||||
* else
|
||||
* printf( "The timestamp happened %f ago", timestamp.Ago() );
|
||||
* timestamp.Touch();
|
||||
* printf( "Near zero: %f", timestamp.Age() );
|
||||
* }
|
||||
*/
|
||||
class RageTimer
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
/*
|
||||
* RageTypes - vector and matrix types
|
||||
*/
|
||||
/* RageTypes - vector and matrix types. */
|
||||
|
||||
#ifndef RAGETYPES_H
|
||||
#define RAGETYPES_H
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Class: ScreenEndlessBreak - Break periods during endless mode. */
|
||||
/* ScreenEndlessBreak - Break periods during endless mode. */
|
||||
|
||||
#ifndef SCREENENDLESSBREAK_H
|
||||
#define SCREENENDLESSBREAK_H
|
||||
|
||||
Reference in New Issue
Block a user