Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _WAVPLAYER_H
- #define _WAVPLAYER_H
- #include<nds.h>
- #include<cstdlib>
- #include <stdio.h>
- class wavPlayer
- {
- private:
- int channels;
- long rate;
- FILE* fh;
- u32 mainbuffer_size;
- u8* mainbuffer;
- u32 audiobuffer_size;
- u8* audiobufferLeft;
- u8* audiobufferRight;
- int leftSoundID;
- int rightSoundID;
- int soundcursor;
- int prevtimer;
- bool destroyed;
- bool stopped;
- void regenStreamAtPos(int pos, int len);
- public:
- wavPlayer(const char* filename);
- ~wavPlayer();
- void stop();
- void update();
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement