2008-02-09 00:37:25 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2001-2008, Haiku Inc. All Rights Reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2002-10-06 15:31:21 +04:00
|
|
|
#ifndef _SIMPLEGAMESOUND_H
|
|
|
|
#define _SIMPLEGAMESOUND_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <GameSoundDefs.h>
|
2002-08-11 02:38:37 +04:00
|
|
|
#include <GameSound.h>
|
|
|
|
|
2002-10-06 15:31:21 +04:00
|
|
|
|
2008-02-09 00:37:25 +03:00
|
|
|
struct entry_ref;
|
2002-10-06 15:31:21 +04:00
|
|
|
|
|
|
|
|
2008-02-09 00:37:25 +03:00
|
|
|
class BSimpleGameSound : public BGameSound {
|
2002-08-11 02:38:37 +04:00
|
|
|
public:
|
2008-02-09 00:37:25 +03:00
|
|
|
BSimpleGameSound(const entry_ref * inFile,
|
|
|
|
BGameSoundDevice * device = NULL);
|
|
|
|
BSimpleGameSound(const char * inFile,
|
|
|
|
BGameSoundDevice * device = NULL);
|
|
|
|
BSimpleGameSound(const void * inData,
|
|
|
|
size_t inFrameCount,
|
|
|
|
const gs_audio_format * format,
|
|
|
|
BGameSoundDevice * device = NULL);
|
|
|
|
BSimpleGameSound(const BSimpleGameSound & other);
|
|
|
|
|
|
|
|
virtual ~BSimpleGameSound();
|
2002-08-11 02:38:37 +04:00
|
|
|
|
2002-10-06 15:31:21 +04:00
|
|
|
virtual BGameSound * Clone() const;
|
2002-08-11 02:38:37 +04:00
|
|
|
|
2008-02-09 00:37:25 +03:00
|
|
|
virtual status_t Perform(int32 selector, void * data);
|
2002-08-11 02:38:37 +04:00
|
|
|
|
2008-02-09 00:37:25 +03:00
|
|
|
status_t SetIsLooping(bool looping);
|
|
|
|
bool IsLooping() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
status_t Init(const entry_ref * inFile);
|
|
|
|
status_t Init(const void* inData, int64 inFrameCount,
|
|
|
|
const gs_audio_format* format);
|
2002-10-06 15:31:21 +04:00
|
|
|
|
2002-08-11 02:38:37 +04:00
|
|
|
/* leave these declarations private unless you plan on actually implementing and using them. */
|
|
|
|
BSimpleGameSound();
|
|
|
|
BSimpleGameSound& operator=(const BSimpleGameSound&);
|
|
|
|
|
|
|
|
/* fbc data and virtuals */
|
|
|
|
|
|
|
|
uint32 _reserved_BSimpleGameSound_[12];
|
|
|
|
|
2008-02-09 00:37:25 +03:00
|
|
|
virtual status_t _Reserved_BSimpleGameSound_0(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_1(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_2(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_3(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_4(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_5(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_6(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_7(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_8(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_9(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_10(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_11(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_12(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_13(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_14(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_15(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_16(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_17(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_18(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_19(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_20(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_21(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_22(int32 arg, ...);
|
|
|
|
virtual status_t _Reserved_BSimpleGameSound_23(int32 arg, ...);
|
2002-08-11 02:38:37 +04:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _SIMPLE_GAME_SOUND_H
|
2008-02-09 00:37:25 +03:00
|
|
|
|