A _decent_ audio player for the StrongARM?
I like Media Player 7.1 on my ipaq, it seems halfway decent. But when it comes to using my microdrive efficiently, _forget it_. The thing keeps my microdrive always on, effectively cutting my battery life to 2 hrs if I'm lucky.
I have the VC devkit and am seriously pondering spending a few hours to create an audio player (probably using public C++ MP3 decoding source and GAPI). If nobody has really done this yet, then I will try it and give everyone my results.
- Richard
If your script materializes, we would be glad to host it here at PocketMatrix.com.
good plan, when i get a microdrive in a few months i'll want it definitly.
Chuck, didn't you say you didn't have any money

i dont' have money, i just spent it on a 128 meg cf card and cf reader

Its just what i'm usin till i can afford more.
iPLAY has a Microdrive feature Richard. Sorry to disappoint.
If your last name is Rice, we
could use one last update to PocketNES, -Add diagonals to the VirtualDpad.
Don't say I didn't try

999, actually I tested out iPlay. It has a hacky, non-standard interface and would totally stutter if I tried to do anything else on my iPaq. I'm unsure if it allows you to turn off the LCD screen, too. If it was a better quality product I would pay $ for it, but since it isn't, I will try making my own.
- Richard (not Rice)
Richard-
Well, that's both bad and good news

The good news being, I can hope for a better medium for playing back mp3s off my MD

Please sign me up as a beta tester, I've got an old 340MD, a real powermonger
I want to beta test it, I've got a 1GB MD, to keep the beta fields as broad as possible. Also, that's an E-125 (overclocked to 200MHz, so we can test it under that condition too!)! more exclamation marks ! i'm ecstatic with joy ! or something !
ya, i'm soon to have a 128 meg cf card, being sent assss we speak. Annd moose while i'm drunk you sound really cool. Yes and i'm overclocked to 200.3 mhz tooooo. E-125 is the sheeeeeeizzzzzy.
Chuck, moron, it's for a MicroDrive, moron. Don't ever drink in public, you become 4 times as dumb as normal (hey wait, 4 times an IQ of 0 is still 0!)
i know what it was for. WHo gives a rats ass if its for a microdrive, it'll still prolly be better than Media player.
Are you still drunk? The point of it was to conserve battery power that the microdrive drains. It wouldn't do anything AT ALL for a solid state memory card.
no feckin way, i know. BUt if he spends the time to make a new media player. Maybe it'll have more functions like an EQ and stuff. That way it would also help me so die.
I wouldn't hold your breath for a WinAmp-buster anytime soon. However, I am making progress. I expect I'll have some form of MP3 player in about a week. The mp3 decoder part is compiled right now, but that's just the beginning. Now I have to init the sound hardware, feed the output buffer, and add in a little bit of graphics and UI. At that point I'll probably let everyone dig into the source and have fun with it.
- Richard
I like digging, and FUN! Dig Dug was the funnestes game out there! And it still is the funnestes game out there. I could play it for hours! actually only about 5 minutes, but Digging and Fun go together like bacon and peanut butter!
(do I need to add a tilde there or what? Maybe just a smily will do)
;D
Moose:
It's all about the music in DD. I love how you have to keep moving for it to play

;D That's not music that's his footsteps ;D
Could you please implent:
-an equalizer
-wmf support
-maybe those lines showing how loud the music is (you know what I mean - visual effects - Desktop Media Player and WinAmp got 'em and they look kinda cool)
Be sure to get 999 for the GUI!
999:

See this as a compliment
-Shape
I personally NEED an equalizer with any audio player. I can't do without one. I couldn't care less about WMF support.
I also like the ability to use visual plug-ins. Like the Spectrum Analyzer (Shapeshifta, that's it's name) and a voice print. But all you'd have to do is implement a plug-in system. Others could code those in. Hehe, as long as they run in real time with the music. I remember a while ago the spec analyzer would be a second or so behind in Winamp, making it completely useless. Same with Voice print.
I see that you've already been bombarded with feature requests already, but a really cool feature would be support for the ogg vorbis audio codec. It kicks wma and mp3's butt's, so that would be cool.
www.vorbis.com
og-vorbis codec support, equalizers, wma audio, oh yes, just give me three more minutes and I'll have all that in there

I'll do that, right after I get this 'PLAY' button to work.
Actually, I haven't touched C, C++ or Windows programming in 4 years, but this little project is definitely jogging my memory. I wonder if it'd be easy to have PocketPC recognize a floating window, like the floating WinAmp window on the PC. It seems that since the pop-up keyboard seems to work pretty well, that a pop-up MP3 control bar would work just as fine, but I'm just speculating.
I'm going to work hard to get some music out of my little program tonight, and if I can then by Saturday or Sunday I'll have a GPL'ed program to share.
- Richard
Make it easily skinnable and you'll have everyone bombarding your website to download it.
Make it good to be used in background mode and people will use it more often. IMHO.
Since this project's aim is to reduce the workload on a Microdrive when listening to mp3s, there really isn't any need to make it so feature rich IMHO. The MD option right there is the biggest and best feature of all.
I'd be happy with a simple top tray icon, tap to play and stop, click and hold to bring up a little menu -
||> - Play/Pause
<< - Back Track
>> - Forward Track
[] - Stop
PL - Playlist editor - spawns new app window
-| High
-|
-| Low - a vertical volume slider
[ ] Keymap (enables Dpad control*)
*
- Action = Play/Pause
- Left = Back
- Right = Forward
- Up = Vol Up
- Down = Vol Down
[Rec]Screen Toggle
- Up + Action = Stop
- Down + Action = Shuffle On/Off
- Left + Action = Previous Playlist
- Right + Action = Next Playist
The ability to skin that little popup tab would be cool I guess, but even the plain jane vb text is peachy with me so long as I get double the battery life on my MD.
Last modification: 999 - 06/12/01 at 15:16:17
999 SHUT UP!!! ~HE WAS GONNA DO GOOD, Don't shot Low, AIM HIGH AND DESTROY THE STARS. woops thats not how it goes.

999, you can SHUT UP now. We want STUFF! Not nothing. I like that idea about making it a bar. Maybe a kind of plug in for WISBar. That would be so kick ass! just a little menu button on visbar that lets you play, stop, pause, or skip to the next track. And while doing all that the Menu name thing would change to the name and length of the song. Then about 2 seconds after getting out of the menu it would change back to the actually menu bar name that you're in.
HEY! THat's a good idea! I need to learn how to program better. Ahh, I' ve got ALL SUMMER LONG!
Guys, Bloatware = Bad.
you could make a plugin for Dashboard, so then when u go to that MyDash thingy, it'd have the playlist and crap. Man talk about integration.
It won't be bloatware. Every single one of these things will be an option that can be turned off. And it won't be some thing that loads on startup if you don't want it to. I want all of my broken 150MHz cycles as I can get. But if I'm surfing the web on my pocketpc I'd really want a control bar for my music up on top!
I like 999's idea of a simple-but-functional interface. Truth be told, GUI programming isn't that hard, making little buttons and such is one of the easier things. It's the logic that goes behind it that's difficult! Well I got SOUND out of my program last night, but it had no resemblance to the actual MP3 I was playing

I will try again tonight.
well at least there was sound.
I'd be happier with no sound. THat means it was programmed wrong and it takes longer to fix than to create from scratch. Well I don't know. It sounded more logical in my head.
Audio programming is a b*tch!
Right now I have spent the whole day trying to get something out of my speaker, but to no avail. Closest I came was a tiny little bit of static after waveOutOpen. I'm actually even trying to send random garbage to the output buffers, but my function callback doesn't seem to work. In fact, the callback is called exactly once at the first waveOutWrite call, but I don't see it executed again at all, which seems weird to me.
Stuff I've studied:
PocketQuake source: Dan East seems to be polling the wave headers for sfx completion; this isn't a continuous stream appropriate for an MP3.
I will try again this week - if I can get just random static out of my speakers, then that puts me probably about 1 hour from an extremely simple Mp3 player. If anyone knows of any simple examples that will send sound using the waveOut functions, Id appreciate it. - Richard
Richard,
I wrote a very simple sample that loads a buffer with a 440hz sine wave and plays it using waveOutWrite. I'd be happy to zip it up and send it your way if you give me your e-mail address.
It also uses a callback function for notifications when the buffer has finished playing. I too see some strange behavior when the WOM_DONE message is sent to my callback. I'm unable to get a breakpoint to trigger on that message (all others work fine). I'm also unable to get DebugBreak to break into the debugger. Under these circumstances I'd assume that the message just isn't being sent to my callback but I'm also setting a global flag in response to that message and it IS getting set. Very strange.
Digby, my EMail address is
psychostorm@yahoo.com ... much appreciative!
- Richard
Richard, why not register at the board?
That is id Software's code, not mine. I have also had a great deal of difficulty getting callbacks to work correctly. I beleive that the windows message-based notification worked, but the function callback didn't. Either way, sound programming with the waveOut API is the most annoying, tedious programming I have ever done.
Dan East
Richard,
Check your inbox. I sent the sample to you this morning.
I also contacted engineers that I know at MS who wrote the waveOut APIs regarding the problems I mentioned with callback functions and WOM_DONE. I'll let you know what I find out.
Thanks Dan East and Digby. Digby, I was 20 minutes late to my job today because I got your source this morning - and WOW it worked.
Dan, looking closer yea that is id's code. The mixing part looked pretty interesting to me for ideas - if I ever do a game, I'd have to do some sort of sound mixing to play multiple sounds at once.
OK, thanks to Digby I think I can get my program to do something useful for once...
Richard glad to help.
I did a bit more digging into the problem of using a callback function with the waveOut APIs. The WOM_DONE message does get sent to my callback function. I can't set a breakpoint, output text to the debugger, or get DebugBreak to execute. The first thing I thought of was that the audio driver (or more accurately DEVICE.EXE) had disabled interrupts before it called the callback function for WOM_DONE. I wrote a quick ARM assembly routine that stuffed the CPSR register into a DWORD, then read that value once control came back to my app. The CPSR was 0x6000001f, which is correct (no interrupts disabled). I'm also getting the same return address on the stack for WOM_OPEN/WOM_CLOSE as I do for WOM_DONE. According to the guys from MS, this doesn't sound right because WOM_DONE should be getting passed from the driver (DEVICE.EXE) and the other messages come from the waveOut API which is running in the application's address space. Confused yet? Me too.
Anyway, I'm still going to use callbacks in my audio mixing code because they do work, there's just some quirks, and they should be less overhead than the other methods. You definitely want to minimize what you do in the callback function. If I happen upon the reason for the weirdness we're seeing with WOM_DONE I'll post my findings here.
uh-huh. Well let us know when umm, you have something that works

Edit: orginal post was off-topic
Last modification: Same old Chuck - 06/20/01 at 18:46:44
New
I actually made a lot of progress in using the waveOut stuff. Let me pass along a few observations I made that were not immediately obvious to me:
- the prepareHeader / waveOutWrite / WOM_DONE message / UnprepareHeader is an _atomic_ unit of execution. I tried using the waveOutWrite twice with the same header and it worked fine on the emulator, crashed my IPAQ completely.
- As everyone has observed, the WOM_DONE callback that the low-level stuff raises is difficult to debug. You can't breakpoint it or anything - best thing is to keep it simple.
- I believe you CAN waveOutWrite two buffers consecutively, and this is how you keep the audio out device continually fed with buffers - once the WOM_DONE message is sent for the first buffer (done playing), you can prepareHeader / waveOutWrite another buffer and at that point and it will end up being the third one.
I intend to finish my simple MP3 player, but now I'm itching to make a mini waveOut API that incorporates mixing of sound effects. i.e., you pass a PCM buffer to the API, and it plays it asynchronously. If indeed mixing is as simple as adding them all together (using the API to get the current sound position so as to enforce a constant 100ms lag, for example), it shouldn't be too difficult.
- Richard
Paul,
I would love to see a mini waveOut API with mixing of sound effects. I'm no expert in the sound area and well ..that gives me problems when I wish to play music & sfx on a PPC program. For desktop, I use to use DirectSound so I didn't worry about it too much then.
wheres my mp3 player!
I'm working on it

Actually, I've been focussing on the waveOutAPI first. MP3's are a lot easier once you have the foundation of a good sound API. Once that's done, I can work on an MP3 player. The waveOutAPI I'm working on will be ready this week, it's still got some bug tweaking to do.
- Richard
well get crackin, i want a working beta by the end of the month. hehehe.
holy smokes. how long has moose had a... a.. moose below his name!?!
Who are you to order him around? I am now the true god of this forum. Notice my cool pic?
<---- I am the Master of Moose!
Muahahaahahaha
You might as well be master of SOMETHING.
HEY! if you were a real good fisherman, you would be a Master Baiter!
I'm so excited, I can't stop using exclamation marks!!! Hey, look i can write books for LaMothe to!!!
Hey.. I like that, Master Baiter. I'm going to use that some day.
BTW, My pic is going to be taken off in exactly one hour, so fill up on it! You may see it again in my signature ;D
wasnt there controversy years ago over captain pugwash because of the characters "Seaman Staines" and "Master Baites"
LOL, I had never heard that. That's some funny shite
Hey, what happened to this project? Still working on it or gave it up?
My Win2K crashed recently and I lost the stuff I was working on. I was getting audio mixing to really work too, but I do have a semi-recent printout of the source code. I will resume this work when I get something called 'free time' again... - Richard
Cool, and don't forget to compile for mips, too

Hey, are you still thinking about that window-thing? I have seen a midi-player in front of the file explorer - maybe you could write to the author (it's freeware) and ask for some code...
If you are interested, I'll look up the link...