Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Darmakwolf

#331
Interesting find: http://developer.android.com/sdk/ndk/index.html
Gernot, is there any way GLBasic could wrap around the SDK and compile a C program for Android? I am getting an HTC Droid Incredible soon from Verizon. I understand it uses interpreted Java by default, but this SDK permits the use of C in the program. It's likely that it would still require a small java applet to launch the program, but that could be built into the compiler and be generated automatically. Is there even the slightest possibility of this??
#332
Should I just use Wav/PCM? And if so, what sample rate works best? (I hate having to resort to a bulky format...)
#333
Great! ... um... which libraries are compatible with GP2X-Wiz? I'm mostly interested in alternative audio functions.
#334
Is there any way to link to an external function library or make a wrapper in Linux or GP2X/Wiz?? I know it's possible in Windows with DLLs, just wondering...
#335
30fps actually causes it to freeze on nearly ANY song. Only one played successfully when set to 30 fps. All others are crashing completely or kicking me to the gph launcher. I have tried a vast array of MP3 types/encodings, most do not play at all! D:
#336
Well I am able to confirm that there is a major problem with the Playmusic function in the first place. I thought maybe I just somehow overloaded the Wiz with my media player's functions (they're modest...) but I was wrong. Make a simple app that just loads any ol' mp3 through playmusic, and make it print something like "Playing music" on the center of the screen. EVERY song works on Windows for me, including .Ogg with the proper codecs. Pop it onto the Wiz, and you're lucky if 1 in 5 songs play (at all.) I understand it may have something to do with the codecs in the firmware, but there seems to be a need to control audio at least on a very basic level. (I.E: We would like to specify a starting point or at least be able to load music and know it'll work...) Is there no way you can use portions of Mplayer specifically for gp2x, or even something like the well-documented SDL audio libraries? Obviously other apps on the GP2X-Wiz can make good use of the audio, I'd love to be able to do the same and I'm sure I'm not alone... Not that I'm not grateful for GLB. It's a lot of fun, I've just run into a wall with this audio issue :3
#337
I'm workin' on it! xD
#338
Thank you for trying it :)
Yes indeed - the game needs more substance. I plan to add levels and difficulty, and it would be fun to have some kind of defense against the dragon. I think what I'll do is make Fruit charge up some kind of "magic" bar, and you can cast spells at the dragon which drain your magic bar depending on the spell used. What do you think? :)
#339
No one has a Wiz they can pop my program onto to see what I'm talking about? I attempted to remove parts of the code which could be causing an audio-playing bottleneck, and nothing significant happened. I tried capping the FPS to 10, then 5. All this did was reduce the music choppyness by a little on some songs, but made the app hardly responsive. ( Still had the weird issues with playing.)  Is it completely impossible to use Inline C to link to some kind of audio library for Linux? I'm just really upset that I've had audio issues with every program I've made for Wiz so far besides one. It's my favorite handheld. I understand that the iPod is the system-of-choice for developers because they make money off of it (because everyone, their grandma and their dog has an iPod.) but I program for enjoyment and to better myself as a programmer. Someone commented before stating that most GLBasic users would be happy if all support except ipod were removed. I disagree to the fullest extent possible - I love my GP2X.

Anyways - I got a little off-topic. Really what I'm looking for is some solid audio playback. Even .OGG, which should (in my opinion,) have better compatibility than mp3 on a linux handheld, stutters in any app I make which has something going on in the foreground, such as a simple game. Any suggestions??
(Just for reference, it's not my SD card. I have a Class 6 SDHC that outperforms many common brands, and I have tried the app on 4 sd cards. Same result...)
#340
Okay, update I guess. I was able to stop the application from crashing altogether by setting the Wiz clock to 766 Mhz in the program itself. This does allow it to stay stable, however, not all songs play at the correct speed! It's really strange. Some songs play extremely slow while others play normally. I'm perplexed...
#341
strange - it wasn't crashing on Win7. Anyways - I altered the code to now accept less than 14 files. (It crashes when there's NO music in the folder, but I will deal with that next.) Working fine in win7, even with one MP3. With several hundred, I can scroll around and play any song as long as I want to, and on the GP2X-Wiz I can play MAYBE 10, and it'll freeze. whyyy ><

[attachment deleted by admin]
#342
*invokes the mighty Spirit of Gernot*
Help us, great one? D:
#343
I will give it a try later, thank you for pointing that out! Maybe it just freaks the Gp2x out and not Windows. I hope this fixes it :)
#344
I am working on a simple music player for GP2X-Wiz called Bit Player. In Windows, it works like a charm without a hitch. On the Wiz, it works the same except that some MP3s decide not to play (while others do,) and after playing some songs for a while it will lock up alltogether upon selecting a song. I even tried stopmusic before playing another song, and I get the same result. I have attached the source because I'm a little frustrated with trying to get it to work, and I'm hoping someone could point out the problem. It took a long time to get the file selector working this way!
note: music files go in the Music folder. up/down arrow on windows will select a file up or down, and X on the keyboard corresponds to B on the Wiz.(page up/down for volume. ) Is this perhaps a glitch in playmusic on the wiz platform??
[NOTE: the player currently REQUIRES at least 13 songs in the Music folder. This is due to the way the music list works, and will be fixed soon. just throw 13+ songs in there and it'll work :) ]

[attachment deleted by admin]
#345
A silly game I made to further my understanding of GLBasic. Makes use of the touch screen or controls. (Made with GP2X-Wiz in mind, playable on PC via mouse/arrow keys.)
The objective is to collect fruit as it appears before it expires, avoid the dragon and his fire, and rack up as many points as possible.
To be implemented:
- score saving
- multiplayer (on pc, gp2x will require the wifi dongle when it arrives)
- more content. (Needs more stuff going on, such as alternate enemies that appear at random.)
- levels + difficulty setting!

Note: This program makes use of the experimental inline-C overclock routines. I've tested it and it does work and overclock the gp2x effectively.
Volume buttons do in fact change the volume, and pressing both will quit the game. Tapping Menu will pause the game.
Touch anywhere with the stylus to move the wizard. Let me know what you think!
(Please also understand this is just a beta test of a *concept.* )

[attachment deleted by admin]