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.

sounds.h 932B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * sounds.h
  3. *
  4. * Created on: Oct 29, 2013
  5. * Author: superman
  6. */
  7. #ifndef SOUNDS_H_
  8. #define SOUNDS_H_
  9. #include <xbasic_types.h>
  10. #include "xparameters.h"
  11. #include "xac97_l.h"
  12. /**
  13. * These are the Getters and setters to control global sounds
  14. * Set the value to (1) in order to allow sound generation
  15. * Set the value to (0) in order to halt the sound
  16. */
  17. int isHaveTankBulletSound();
  18. void setHaveTankBulletSound(int x);
  19. int isHaveTankDeathSound();
  20. void setHaveTankDeathSound(int x);
  21. int isHaveSpaceShipSound();
  22. void setHaveSpaceShipSound(int x);
  23. int isHaveSpaceShipDeathSound();
  24. void setHaveSpaceShipDeathSound(int x);
  25. int isHaveAlienDeathSound();
  26. void setHaveAlienDeathSound(int x);
  27. int isAlienSoundCadence();
  28. void setAlienSoundCadence();
  29. void incrementAlienSoundCadence();
  30. //This loops through 128 values to control the fifo input of ac97
  31. void fillSound();
  32. Xuint32 getNextSample();
  33. #endif /* SOUNDS_H_ */