Newer
Older
Import / research / embedded / src / library / sound.h
@John John on 29 Dec 2020 504 bytes bulk import from macbookpro checkouts
/*
Copyright (c) 2007-2013, John Ryland
*/
#ifndef __SOUND_H__
#define __SOUND_H__

typedef struct {
    int	          fd;
    int	          size;
    unsigned char *data;
} Sound;

extern int openSound();
extern void closeSound(int audioFd);
extern void playSoundFile(int sd, const char *mapableSound);
extern Sound openSoundFile(const char *mapableSound);
extern void closeSoundFile(Sound sound);
extern void playSound(int sd, Sound *sound);
extern void setVolume(int arg);

#endif /*  __SOUND_H__ */