Search results

  1. C

    GP32 Passing Structs With More Than 1 Dimension

    Hi ! I have a struct struct LMap { unsigned short nTile; unsigned short nState; } then i define a variable struct LMap sLevel1Map[32][32]; and i would like to create a subroutine: void PlayLevel( :angry: :angry: :angry: ) Now, how do i pass my sLevel1Map to the subroutine. Using...
  2. C

    GP32 I Need Random Values

    Hi ! How can i get random values and control the range of them ? Let's say i want random values from 0 to 31 or 7 to 19. Code example ? Should i use srand or rand !? How do i get almost random values that do not repeat each running of the program ? Greetings Tobias
  3. C

    GP32 #define Command

    Hi ! How are #define commands handled ? Is it just like copying a text ? example: #define INT_X 1+2+3+4 when i have this line: for (i=0;i<=INT_X;i++) { ... } would the compiler work like: 1.) for (i=0;i<=1+2+3+4;i++) { ... } or 2.) for (i=0;i<=7;i++) { ... } My real question: For...
  4. C

    Boulder Dash Clone

    Hi ! I would like to see a boulder-dash clone on the gp32. Is there anyone who would write one ? Here is a clone that is released including source-code: rocks n diamonds Greetings Tobias
  5. C

    GP32 Alternative To The Sdk Soundmixing ?

    Hi ! Can anyone help me how i can get an own soundmixing routine ? I need the possibility to play sounds in different volume levels and more than 4 channels (8 would be best). Or is someone working on something like that or has a library i could use ? Greetings Tobias
  6. C

    New: Tobi Drummer 1.0.6 / Homepage

    A new version of Tobi Drummer (1.0.6) is available. Download it from: Tobi Drummer Homepage What's new: - 50% smaller executable (Compressed FXE) - Pattern/Track Copy implemented - Song can be looped (Edit Pattern Queue Menu) - Patterns are played looped now (Edit Pattern Menu) - Smaller...
  7. C

    Tobi Drummer - What Do You Want Me To Improve ?

    Hi ! I would like to know from you, what improvements i should make on Tobi-Drummer (V 1.0.x) ? My Problems and Ideas: - I work on a pattern/track copy command - A play-along mode would be possible but i use the standard mixing mode of the SDK that only supports 4 channels - i may think of...
  8. C

    GP32 Division Problems / Remainder

    Hi ! I want to write a routine for choose values. Example: Values 0-32 in 4 columns. The only problem is, how to find the remainder and use it in if. When i want to put 0-32 (33 Values since counted from 0) in 4 columns, each column needs 8.025 (it may be wrong, but its an example) lines. So i...
  9. C

    GP32 I Got Devkitarm_r8 (nearly) Running

    Hi ! I managed to get devkitarm running after an instruction from a french site. Now i could compile my project and it runs. Sounds nice ? But i get no warnings :huh: ! I need reporting of unused variables, signed/unsigned comparison etc. In my old Makefile i used in devkitadv i had this...
  10. C

    GP32 Can I Make Libraries From .h Files ?

    As i told in my last posting, i created a user interface using devkitadv. Is it possible to compile in order to use it like a library (in windows called .DLL) ? Greetingx Tobias
  11. C

    GP32 What Is Bad About Devkitadv ?

    Hi ! I often hear that devkitadv is not very good. Why do you think so ? Sometimes i thought about changing to something else - to mirko's for example. But using devkitadv, i worked very long on an user-interface (menus, messages, file-requester, onscreen-keyboards etc.). And so i managed to...
  12. C

    GP32 How Can I See How Much Ram Is Free ?

    Hi ! Which function do i need to find out how much RAM is available ? I (still) use DEVKITADV. Greetings Tobias Drumman ;-)
  13. C

    GP32 Old Question: How Many Ticks Are 1 Second ?

    Hi ! Can anyone tell me, how many ticks are 1 second ? I need it for the speed of 133 mhz,100 mhz and 66 mhz. Could you also tell me the values that are needed for GpClockSpeedChange ? Greetingx Tobias PS. Perhaps this question or the correct answers should be pinned ?
  14. C

    GP32 Another Samplesound Question

    Hi ! I just want to ensure myself if this construction is ok: A Struct: struct samples { unsigned short * pSample[8]; unsigned int nSampleLen; /* you see right - 8 samples with the same size */ }; struct samples Sampleset[31]; <now i store in Sampleset[0-31].nSampleLen the size of...
  15. C

    GP32 Fast Calculations

    I would like to calculate new volumes to my sounds and need a possibility to lower it by 3DB (about 70%). Then i could use bitshifts to generate a new volume: 100% -> 50% -> 25% etc 70% -> 35% -> 17.5% etc Let's say i have a 20k sample (16 Bit): unsigned short WaveData[20000] = {...
  16. C

    GP32 Array Of Sounds/samples ?

    Hi ! I would like to create an array that contains sounds. Now i have a Snaredrum-Sample in an Array unsigned short SnareDrum[20000] = {x SampleData for 1 Snaredrum x}; then i would play it like this: GpPcmPlay((unsigned short*)SnareDrum,sizeof(SnareDrum),0); but what i need is an array -...
  17. C

    GP32 Pointers To Structs

    Hi ! i have a struct struct mystruct={int x; int y}; and declare 2 variables of its kind: struct mystruct s1 = {10,10}; struct mystruct s2[] = {{10,10}} i have a function: void func(struct mystruct 1* a) ... Now i want to pass an argument to this func: func(s1); //this causes the error...
  18. C

    GP32 Your Favourite SDK

    Using DevKitAdv I am writing a helper library with these functions: - pulldown-menues - onscreen-keyboards - y-scrollable list - fileselector and - messagebox And in future, i would like to release this library for the most used SDK's. Until then i have to work very much, i suppose...
  19. C

    GP32 Cutting A String - How ?

    Hii ! Let's say i have a string char strA[10]; The string contains "abcdef" but i need only "abc". Is it enough to terminate the string at the needed position ? strA[4] = '\0' Or can i use strncpy (strA,strA,3); or must i use a temp-variable strcpy (strB, strA); strncpy (strA,strB,3)...
  20. C

    GP32 Subroutines Returning A String

    Here i need SelectFile to return a string. Is this example ok ? Should i allocate memory in this case ? ... strcpy(cInputStr,SelectFile("test")); ... char* SelectFile(char * strStartPath) { char * cOutStr; cOutStr = gm_malloc(256); strcpy(cOutStr,strStartPath); gm_free(cOutStr)...
Back
Top