Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 13
Registered: ‎11-21-2009
My Device: Not Specified

CDMA Storm - Useless!

First I try to make a flashlight using the video capture player - FAIL

I try and almost succeed at making a guitar tuner:

   Simulator runs many times faster than the phone, making FFT tweaking a pain in the arse. How 'bout throttling, PLEASE!?!

   The simulator supports PCM. I actually had a chromatic tuner working! IT FREAKING WORKED! IT showed note and cent offset. So many hours just to find the phone says the PCM encoding is not supported - FAIL

 

Why the hell do they put these things in the API reference (which is practically useless for a n00b like me) when they've crippled the phone. Apparently they didn't want app developers to do anything clever.

 

>:-O

 

I hereby abandon BB development. It's now apparent why cool apps like this don't exist already. Because they cant. Should have gotten an iPhone.

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: CDMA Storm - Useless!

BlackBerry - useless.

 

Ok, I've made a note of it.   Smiley Happy

 

I understand your frustration (we were all noobs at one time), but these issues exist on every platform I've learned over the past 25+ years. You either slug through it and join the ranks of the "experts" (or at least "competents"), of you give up in frustration.

 

I remember feeling the same way about the Windows, back when the early versions were released.

 

...and I think it took me 2 years to learn MFC on Windows (after C++ was released)

 

...and just when I had the event mechanism in Java figured out, they changed it (twice).

 

Chin up....

 

 

New Developer
Posts: 13
Registered: ‎11-21-2009
My Device: Not Specified

Re: CDMA Storm - Useless!

[ Edited ]

Thanks for the encouragement. I've been programming for about 15 years. From microcontrollers to symmetric multiprocessors to GPU, windows to linux, lua to assembler. I actually hadn't used Java before (though read it several times) about a month and a half ago, when I rediscovered Robocode (program robots to fight eachother, I highly recommend it) - which used to be great in zasm. After this long, and with the amazing guidance from Eclipse, I'm pretty solid with Java already. Even still I find the learning curve with their API feels quite steep, and it doesn't help that there are so many different versions and platforms. You don't even know what your hardware is gonna support. I really think someone made a bad design decision with the lack of PCM encoding though. That's the native sampling format, and it exists on other phones. I'm pretty sure someone would have had to say, "let's take this out."

 

Now that my frustration has simmered a bit, I'm not completely against black berry development. But I'm out of ideas. I'm not really into making a new tweeter or something beat to death. I'm more of a stand alone app kinda guy. In any case, if I do have a brilliant idea, you can bet I'll be coming around here first to check the feasibility. Never had that kind of problem before - having and being unaware of hard limitations.

 

On a last note - I could try to use the AMR encoding, but I don't know anything about it and decompression scares me. On top of that, it's already a push to do the FFT fast enough to get the frequency domain (for the tuner part) - how cool would that be if there was an API to use the DSP on the phone to do stuff like that which is what DSPs are built for (I looked, crossing my fingers, no luck?). On the other hand, I just considered that the ARM compression may already contain frequency domain data, which could illiminate both problems... definitely worth more research. Though since the compression is suited for speech, the audio may not be good enough for precise frequency detection. Anyone got any tips on that matter?

Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: CDMA Storm - Useless!

Two things, one you could post the idea of having access to the DSP in the Issue Tracker. It would at least put it in a place where it can be checked to see if it will get implemented or not.

 

Second: The Storm doesn't support PCM? I don't know what OS you are using (4.7 or 5.0) but at least on 5.0's documentation it presents all possible encoding formats and PCM is supported (at least in the documentation). If it really isn't supported then that is definitely something to put in the Issue Tracker either under API to add support or Documentation to remove it so others don't try to use it because it is there.

 

You have a lot of experience, I'm sure you can do some amazing app(s) if you put your mind to it. Good luck.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
New Developer
Posts: 13
Registered: ‎11-21-2009
My Device: Not Specified

Re: CDMA Storm - Useless!

As for the OS, I'm using 5.0.0.328 on the phone, using the 5.0.0.252 simulator (9500). Since the place I found specifically said that the CDMA ones are the ones that don't support PCM, I can guess that GSM does, hence the simulator supporting it. I've been using the 5.0 API reference, so yes, that's where I found the string for the capture:// stuff.

 

I just made three new issues in the tracker, the encoding problem, the simulator being too fast, and accessing DSP functionality. Maybe something good will come of it. *shrugs*

 

thanks again

Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: CDMA Storm - Useless!

At least it is there now. Can you post the links to them? I could definetly use the DSP support in some apps I am working on.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
New Developer
Posts: 13
Registered: ‎11-21-2009
My Device: Not Specified

Re: CDMA Storm - Useless!

[ Edited ]

Sure:

Simulator too fast - https://www.blackberry.com/jira/browse/TOOL-68

DSP capabilities - https://www.blackberry.com/jira/browse/JAVAAPI-699

Recording problems - https://www.blackberry.com/jira/browse/JAVAAPI-698

 

Ummm... so I've been experimenting with some more encodings:

FORMAT       SIM  DEVICE

pcm          y    n

audio/basic  y    n

ulaw         n    n

audio/x-wav  n    n

gsm          y    y

 

GSM is the only one I can get to work on the phone. Still has to be decompressed though. I've also noticed that doing things like &rate=44100 have no effect in the simulator for pcm, and can't test for the device.

Highlighted
Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: CDMA Storm - Useless!

Weird, in my "rule book" that is definitely a bug. If you support a feature enough to put it in your simulator but not your actual device then something is not right. Its good you are testing that.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 178
Registered: ‎07-29-2008
My Device: Not Specified

Re: CDMA Storm - Useless!

 

Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: CDMA Storm - Useless!

It is very possible and most likely the case.

 

I felt that it was a bug because when you go to develop a product you often develop it for something, in this case an app for a BlackBerry. If you can develop the app but you can't get it to work on the "thing" that you are developing it for then either you did something wrong or the thing you are developing for has something wrong with it. coder0xff seems to know what he is doing so if he wrote the code right but it doesn't work then I would consider it a bug. Often you can download the simulator of either CDMA or UTMS so if it is enabled for both then I would expect it works for both.

 

If they only had one simulator available then I would understand but they have more then one for all but the newest BlackBerrys.

 

On a "slight side note" I would rather have a slower, software emulation of something then to have it available for developers but no way to use it on the actual device unless you are developing for a specific "subdevice" like CDMA or UTMS.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.