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

Adobe AIR Development

Reply
Developer
Posts: 152
Registered: ‎08-25-2010
My Device: 9530, 9550, 9630
My Carrier: Verizon

Sounds in Hz?

Was just curious if there is a way to play a sound frequency in Hz....

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Sounds in Hz?

See the sample code under the sampleData event.

 

Note that simulator 0.9.2 played sound, but you just get silence in 0.9.3.  Should be fixed in the next release.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Sounds in Hz?

Also see example I posted here (and please use the Search feature above to try and see if any followup questions you have were already answered).


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Highlighted
Developer
Posts: 152
Registered: ‎08-25-2010
My Device: 9530, 9550, 9630
My Carrier: Verizon

Re: Sounds in Hz?

4186.01 <-- i was hoping to be able to take that frequency and play it as audio through the device lol

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Sounds in Hz?

And what's stopping you?


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 152
Registered: ‎08-25-2010
My Device: 9530, 9550, 9630
My Carrier: Verizon

Re: Sounds in Hz?

nevermind lol Smiley Tongue

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Sounds in Hz?

I figured I missed a joke there, but couldn't see it.  That frequency seems to be pretty much the top C on a piano keyboard, but other than that I was lost.  Maybe something for phreaking?


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (Red Limited Edition)
My Carrier: Mobile Vikings

Re: Sounds in Hz?

If it's any consolation, I didn't get it either.

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Developer
Posts: 1,269
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: Sounds in Hz?

[ Edited ]

Never nevermind... I didn't read Peter's reply closely enough.  Of course he Googled "4186.01" and found out what that frequency is on a piano.