/usr/include/sidplay/sidplay2.h is in libsidplay2-dev 2.1.1-12.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | /***************************************************************************
sidplay2.h - Public sidplay header
-------------------
begin : Fri Jun 9 2000
copyright : (C) 2000 by Simon White
email : s_a_white@email.com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef _sidplay2_h_
#define _sidplay2_h_
#include "sidtypes.h"
#include "SidTune.h"
#include "sidbuilder.h"
// Private Sidplayer
namespace SIDPLAY2_NAMESPACE
{
class Player;
}
class SID_EXTERN sidplay2
{
private:
SIDPLAY2_NAMESPACE::Player &sidplayer;
public:
sidplay2 ();
virtual ~sidplay2 ();
const sid2_config_t &config (void) const;
const sid2_info_t &info (void) const;
int config (const sid2_config_t &cfg);
const char *error (void) const;
int fastForward (uint percent);
int load (SidTune *tune);
void pause (void);
uint_least32_t play (void *buffer, uint_least32_t length);
sid2_player_t state (void) const;
void stop (void);
void debug (bool enable, FILE *out);
// Timer functions with respect to resolution returned by timebase
uint_least32_t timebase (void) const;
uint_least32_t time (void) const;
uint_least32_t mileage (void) const;
operator bool() const { return (&sidplayer ? true: false); }
bool operator!() const { return (&sidplayer ? false: true); }
};
#endif // _sidplay2_h_
|