oolite/SDLSound.h
dajt 2747a440c9 Classes for SDL sound
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@42 127b21dd-08f5-0310-b4b7-95ae10353056
2005-05-04 11:04:57 +00:00

32 lines
673 B
Objective-C

//
// SDLSound.h: Audio interface for oolite to the SDL library.
// Implements methods from NSSound which are used by oolite.
//
// Note this does not inherit from NSSound, but has the same interface.
// This was done so there is one less dependency on GNUstep AppKit.
//
// David Taylor, 2005-05-04
//
#import <Foundation/Foundation.h>
#include "SDL.h"
#include "SDL_mixer.h"
@interface OOSound : NSObject
{
BOOL isPlaying;
Mix_Chunk *sample;
int currentChannel;
}
+ (void) channelDone:(int) channel;
- (id) initWithContentsOfFile:(NSString*) filepath byReference:(BOOL) ref;
- (BOOL) pause;
- (BOOL) isPlaying;
- (BOOL) play;
- (BOOL) stop;
- (BOOL) resume;
@end