Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Audio recording in WP8
Started by fernandojefferson Dec 04 2014 11:36 AM

3 replies to this topic
audio recording wp8
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

fernandojefferson

[GLOBAL: userInfoPane.html]
fernandojefferson
  • Observer

  • 10 posts
  • Corona SDK

Why Windows Phone 8 does not support media lib (especially audio recording feature)?

Is this feature in road map for WP8 ?



[TOPIC: post.html]
#2

Joshua Quick

[GLOBAL: userInfoPane.html]
Joshua Quick
  • Moderator

  • 3,397 posts
  • Corona Staff

Because we didn't have time to add it.  Every feature, every detail, takes time to implement.  We have over 4 years of work that was put into Corona for Android and iOS by a team of developers.  That effort can't be duplicated within a year for WP8.  :)

 

For audio playback, we recommend that you use our audio.* API.  This Lua library is fully supported.  We even support the majority of the secret/unofficial OpenAL APIs that we blogged about a few years ago, such as controlling pitch.

 

We do not currently support audio recording for WP8.  It's not a popular feature, so, it was low priority.  But you can implement it yourself in C# via Microsoft's AudioVideoCaptureDevice class.

   http://msdn.microsoft.com/en-us/library/windows.phone.media.capture.audiovideocapturedevice.aspx

 

How to implement other media library like functionality can be found on Microsoft's website here...

   http://msdn.microsoft.com/en-us/library/windows/apps/hh202973(v=vs.105).aspx

 

And we document how to communicate between Lua and .NET here...

   http://docs.coronalabs.com/daily/coronacards/wp8/communication.html

 

I hope this helps!



[TOPIC: post.html]
#3

fernandojefferson

[GLOBAL: userInfoPane.html]
fernandojefferson
  • Observer

  • 10 posts
  • Corona SDK

Thank you.
I would just like to point out that audio recording could be important for those who develop business applications



[TOPIC: post.html]
#4

Joshua Quick

[GLOBAL: userInfoPane.html]
Joshua Quick
  • Moderator

  • 3,397 posts
  • Corona Staff

I understand.  We're missing some features that would come in handy to game developers too, like in-app purchase, ads, native TextFields, etc.  We're not singling any one type of developer out.  We simply prioritized features that were popular *and* the most difficult for .NET developer to implement natively themselves... such as anything involving DirectX (ie: rendering/audio), multitouch, sensor handling, HTTP communications, cryptography, C/C++/Lua/.NET bridging, etc.  Features that could be easily implemented by Corona developers in .NET had less priority.  We're willing to help you with the Lua/.NET bridging code too if you need it.  We want it to be as painless for everyone as possible.

 

I did find a C# example on how to implement audio recording here...

   http://independentinnovation.net/blogs/independentinnovation/archive/2012/12/11/Windows-Phone-8-Audio-Recording-using-Windows.Phone.Media.Capture.aspx

 

And I recommend that you record audio to PCM, which is an uncompress *.wav audio format that you can playback via Corona's Lua audio.* APIs.




[topic_controls]
[/topic_controls]