Shop OBEX P1 Docs P2 Docs Learn Events
HSS Issue — Parallax Forums

HSS Issue

RIT StudentRIT Student Posts: 4
edited 2008-10-22 00:27 in Propeller 1
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 confused.gif . Please see attached file.

Thank you for your help!

Alana

Comments

  • RaymanRayman Posts: 14,593
    edited 2008-10-18 00:10
    I'm not surprised you're having memory problems using Graphics.spin... It also uses undeclared memory for double buffering. So, even if it did compile, you might still have issues...

    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
  • RIT StudentRIT Student Posts: 4
    edited 2008-10-22 00:27
    Rayman,

    Thank you for your help, that solved our problem!
Sign In or Register to comment.