HSS Issue
RIT Student
Posts: 4
Hi All,
I am doing a senior design project for my university and we are trying to implement a very crude version of simon. My partner and I have looked at the previously made game that has been posted on here and it is not relevant to what we are doing.
We have made spin code to flash boxes in different quadrants of our screen (using TV.spin and Graphics.spin). We would like a different sound to be played (using HSS) with each box when it flashes on the screen and we are trying to do this all in one spin file. We are running into a problem when we try to include the yma_hss_v1.2 file.
When we comment out the "hss" object definition, we can compile our code and load to our dev board and the boxes flash like we want. When we uncomment this line however we cannot compile and we get the error "Object Exceeds runtime memory limit by 88 longs". We are pretty stumped . Please see attached file.
Thank you for your help!
Alana
I am doing a senior design project for my university and we are trying to implement a very crude version of simon. My partner and I have looked at the previously made game that has been posted on here and it is not relevant to what we are doing.
We have made spin code to flash boxes in different quadrants of our screen (using TV.spin and Graphics.spin). We would like a different sound to be played (using HSS) with each box when it flashes on the screen and we are trying to do this all in one spin file. We are running into a problem when we try to include the yma_hss_v1.2 file.
When we comment out the "hss" object definition, we can compile our code and load to our dev board and the boxes flash like we want. When we uncomment this line however we cannot compile and we get the error "Object Exceeds runtime memory limit by 88 longs". We are pretty stumped . Please see attached file.
Thank you for your help!
Alana
Comments
If you really want to use Graphics.spin, you might try adding a SD card and then using my .wav file player in OBEX to play sounds from the SD card.
If you want to use HSS and graphics, you'll probably have to drop the double buffering...
Look here for some notes on the memory usage of Graphics.spin:
http://www.rayslogic.com/propeller/Programming/GraphicsDemo.htm
PS:· You may be able to keep the double buffering by reducing the size of the graphics window to only a portion of the screen...
But, personally, I would try my 2-bit bitmap apps to show custom bitmaps instead of using Graphics.spin...
Post Edited (Rayman) : 10/18/2008 12:17:33 AM GMT
Thank you for your help, that solved our problem!