Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#pragma once
#include "SDL.h"
class Audio {
public:
~Audio();
//// Load the audio file ////
void load(const char* fileName);
//// Play the audio file ////
void play();
//// Stop playing the Audio file ////
void stop();
private:
//// AUDIO SPEC ////
SDL_AudioSpec wavSpec;
//// .wav Length ////
Uint32 wavLength;
//// .wav Buffer ////
Uint8 *wavBuffer;
//// Audio Device ID ////
SDL_AudioDeviceID deviceId;
};