Contains the source code from the course work throughout my undergraduate Computer Engineering degree at Brigham Young University. There is a mixture of Go, Python, C, C++, Java, VHDL, Verilog, Matlab, Bash, Assembly, etc..
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
932 B

/*
* sounds.h
*
* Created on: Oct 29, 2013
* Author: superman
*/
#ifndef SOUNDS_H_
#define SOUNDS_H_
#include <xbasic_types.h>
#include "xparameters.h"
#include "xac97_l.h"
/**
* These are the Getters and setters to control global sounds
* Set the value to (1) in order to allow sound generation
* Set the value to (0) in order to halt the sound
*/
int isHaveTankBulletSound();
void setHaveTankBulletSound(int x);
int isHaveTankDeathSound();
void setHaveTankDeathSound(int x);
int isHaveSpaceShipSound();
void setHaveSpaceShipSound(int x);
int isHaveSpaceShipDeathSound();
void setHaveSpaceShipDeathSound(int x);
int isHaveAlienDeathSound();
void setHaveAlienDeathSound(int x);
int isAlienSoundCadence();
void setAlienSoundCadence();
void incrementAlienSoundCadence();
//This loops through 128 values to control the fifo input of ac97
void fillSound();
Xuint32 getNextSample();
#endif /* SOUNDS_H_ */