Skip to content

Commit ced5e0b

Browse files
committed
Initial release
1 parent 3e41755 commit ced5e0b

File tree

125 files changed

+4457
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+4457
-2
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
If you are reporting a bug please make sure you fill out the following information, otherwise delete this template and ask your question.
3+
4+
5+
##### Expected behaviour
6+
7+
8+
##### Actual behaviour
9+
10+
11+
##### Environment
12+
13+
- AIR SDK version:
14+
- Device OS:
15+
- Device version:
16+
- Development IDE:
17+
- Development OS:
18+
19+
20+
##### Logs
21+
22+
Device logs if relevant

.github/SUPPORT.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Support
2+
3+
As you are a subscribed user of our extensions there are several special support channels that you have access to.
4+
5+
6+
7+
## Check the documentation
8+
9+
### [Wiki](../../../wiki)
10+
11+
The best place to start is in the wiki. This forms the most up-to-date documentation for the extensions and is an important place to start using the extensions.
12+
13+
Common issues include
14+
- Check you have all the required support extensions in the [Add the Extension](../../../wiki/i.Add-the-Extension) section;
15+
- Check you have correctly added and updated any manifest additions (Android) and Info Additions / Entitlements (iOS);
16+
- Check you have called `init( APP_KEY );` with your application key
17+
18+
[Wiki Home](../../../wiki)
19+
20+
21+
### Reference
22+
23+
ASDocs document each of the classes, interfaces, events, functions and properties that you will be using. It is the main reference for the extension. If it's not in the guide you will find it here!
24+
25+
26+
### Changelog
27+
28+
The changelog contains a record of all the changes we have done to the extension.
29+
There are more details in github, referenced with releases but this is publicly available to see the work being done on the extension.
30+
31+
32+
33+
## Search the forum
34+
35+
We use the issue tracker in this repository as a forum for subscribed users to ask questions and submit issues found with the extensions.
36+
37+
When you have a question it is likely someone has had a similar issue before and you can find an answer by searching the closed issues.
38+
39+
Simply use the search bar to search the repository and if you limit the results to **issues** you will see all related questions that have been asked by other users.
40+
41+
[Forum](../../../issues?utf8=✓&q=is%3Aissue%20)
42+
43+
44+
## Ask a question
45+
46+
If you can't find a solution in the existing issues, then feel free to start a new issue to ask your question.
47+
Remember there are no silly questions and we are here to help you as best we can!
48+
We just ask that you provide as much information about your problem as possible, such as platform, versions, AIR SDK used etc.
49+
50+
[Ask a question](../../../issues/new)

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
3+
###### 2017.09.27 [v1.0.018]
4+
5+
Initial release

README.md

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,54 @@
1-
# ANE-AudioRecorder
2-
Audio Recorder Native Extension
1+
built by [distriqt //](https://airnativeextensions.com)
2+
3+
![](images/hero.png)
4+
5+
# AudioRecorder
6+
7+
AudioRecorder is an AIR Native Extension to record audio from the user's microphone to a file.
8+
9+
The simple API allows you to quickly integrate audio recording in your AIR application in just a few lines of code.
10+
11+
### Features
12+
13+
- Record from the device microphone to a native format
14+
- Start, progress and end events
15+
- Single API interface - your code works across supported platforms with no modifications
16+
- Sample project code and ASDocs reference
17+
18+
19+
20+
21+
## Documentation
22+
23+
Latest documentation can be found in the [wiki](https://github.com/distriqt/ANE-AudioRecorder/wiki)
24+
25+
Quick Example:
26+
27+
```actionscript
28+
var file:File = File.applicationStorageDirectory.resolvePath( "recording.m4a" );
29+
30+
var options:AudioRecorderOptions = new AudioRecorderOptions();
31+
options.filename = file.nativePath;
32+
options.audioEncoding = AudioEncoder.AAC;
33+
34+
AudioRecorder.service.start( options );
35+
```
36+
37+
More information here:
38+
39+
[com.distriqt.AudioRecorder](https://airnativeextensions.com/extension/com.distriqt.AudioRecorder)
40+
41+
42+
## License
43+
44+
You can purchase a license for using this extension:
45+
46+
[airnativeextensions.com](https://airnativeextensions.com/)
47+
48+
distriqt retains all copyright.
49+
50+
51+
![](images/promo.png)
52+
53+
54+

docs/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
Gemfile
3+
_site
4+

docs/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
3+
###### 2017.09.27 [v1.0.018]
4+
5+
Initial release

docs/_config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
title: AudioRecorder
2+
show_downloads: false
3+
google_analytics:
4+
5+
repository: distriqt/ANE-AudioRecorder
6+
exclude: ["_Sidebar.md, _Footer.md"]
7+
theme: jekyll-theme-minimal
8+
9+
gems:
10+
- jekyll-redirect-from
11+

docs/_includes/Sidebar.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
3+
<br/><hr/>
4+
5+
<h4>Configuring your application</h4>
6+
7+
1. <a href='i.Add the Extension'>Add the Extension</a><br/>
8+
2. <a href='i.Requesting Authorisation'>Requesting Authorisation</a><br/>
9+
10+
11+
<br/><hr/>
12+
13+
<h4>Functionality</h4>
14+
15+
1. <a href='u.Recording Audio'>Recording Audio</a><br/>
16+
2. <a href='u.Playback'>Playback</a><br/>
17+
18+
19+
20+
<br/><hr/>
21+
22+
<h4>External Links</h4>
23+
24+
- <a href='https://distriqt.github.io/ANE-AudioRecorder/asdocs'>ASDocs</a><br/>
25+
26+

docs/_layouts/default.html

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6+
<title>{{ site.title | default: site.github.repository_name }} by {{ site.github.owner_name }}</title>
7+
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
8+
9+
<script src="https://use.fontawesome.com/8337fb8109.js"></script>
10+
<meta name="viewport" content="width=device-width">
11+
<!--[if lt IE 9]>
12+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13+
<![endif]-->
14+
</head>
15+
<body>
16+
<div class="wrapper">
17+
<header>
18+
19+
<h1 style="text-align: center">
20+
<a href="{{ site.github.url }}">
21+
{{ site.title | default: site.github.repository_name }}<br/>
22+
<img src="images/icon.png" style="width:64px;" />
23+
</a>
24+
</h1>
25+
26+
<h3>Adobe AIR native extension</h3>
27+
<p>{{ site.description | default: site.github.project_tagline }}</p>
28+
29+
<p>
30+
The extension is available here: <a href="{{ 'https://airnativeextensions.com/extension/com.distriqt.' | append: site.title }}">
31+
com.distriqt.{{ site.title }}
32+
</a>
33+
</p>
34+
35+
<h3>Documentation</h3>
36+
{% include Sidebar.html %}
37+
38+
<!--
39+
<p class="view"><a href="{{ site.github.repository_url }}">View the Project</a></p>
40+
-->
41+
</header>
42+
<section>
43+
44+
{{ content }}
45+
46+
</section>
47+
<footer>
48+
<p><a href="https://airnativeextensions.com">airnativeextensions</a> by <a href="http://distriqt.com">distriqt //</a>
49+
<p><small>Hosted on GitHub Pages</small></p>
50+
</footer>
51+
</div>
52+
<script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script>
53+
54+
55+
{% if site.google_analytics %}
56+
<script type="text/javascript">
57+
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
58+
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
59+
</script>
60+
<script type="text/javascript">
61+
try {
62+
var pageTracker = _gat._getTracker("{{ site.google_analytics }}");
63+
pageTracker._trackPageview();
64+
} catch(err) {}
65+
</script>
66+
{% endif %}
67+
</body>
68+
</html>

docs/asdocs/AC_OETags.js

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
////////////////////////////////////////////////////////////////////////////////
2+
//
3+
// ADOBE SYSTEMS INCORPORATED
4+
// Copyright 2008 Adobe Systems Incorporated
5+
// All Rights Reserved.
6+
//
7+
// NOTICE: Adobe permits you to use, modify, and distribute this file
8+
// in accordance with the terms of the license agreement accompanying it.
9+
//
10+
////////////////////////////////////////////////////////////////////////////////
11+
12+
13+
//v1.0
14+
function AC_AddExtension(src, ext)
15+
{
16+
if (src.indexOf('?') != -1)
17+
return src.replace(/\?/, ext+'?');
18+
else
19+
return src + ext;
20+
}
21+
22+
function AC_Generateobj(objAttrs, params, embedAttrs)
23+
{
24+
var str = '<object ';
25+
for (var i in objAttrs)
26+
str += i + '="' + objAttrs[i] + '" ';
27+
str += '>';
28+
for (var i in params)
29+
str += '<param name="' + i + '" value="' + params[i] + '" /> ';
30+
str += '<embed ';
31+
for (var i in embedAttrs)
32+
str += i + '="' + embedAttrs[i] + '" ';
33+
str += ' ></embed></object>';
34+
35+
document.write(str);
36+
}
37+
38+
function AC_FL_RunContent(){
39+
var ret =
40+
AC_GetArgs
41+
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
42+
, "application/x-shockwave-flash"
43+
);
44+
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
45+
}
46+
47+
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
48+
var ret = new Object();
49+
ret.embedAttrs = new Object();
50+
ret.params = new Object();
51+
ret.objAttrs = new Object();
52+
for (var i=0; i < args.length; i=i+2){
53+
var currArg = args[i].toLowerCase();
54+
55+
switch (currArg){
56+
case "classid":
57+
break;
58+
case "pluginspage":
59+
ret.embedAttrs[args[i]] = args[i+1];
60+
break;
61+
case "src":
62+
case "movie":
63+
args[i+1] = AC_AddExtension(args[i+1], ext);
64+
ret.embedAttrs["src"] = args[i+1];
65+
ret.params[srcParamName] = args[i+1];
66+
break;
67+
case "onafterupdate":
68+
case "onbeforeupdate":
69+
case "onblur":
70+
case "oncellchange":
71+
case "onclick":
72+
case "ondblClick":
73+
case "ondrag":
74+
case "ondragend":
75+
case "ondragenter":
76+
case "ondragleave":
77+
case "ondragover":
78+
case "ondrop":
79+
case "onfinish":
80+
case "onfocus":
81+
case "onhelp":
82+
case "onmousedown":
83+
case "onmouseup":
84+
case "onmouseover":
85+
case "onmousemove":
86+
case "onmouseout":
87+
case "onkeypress":
88+
case "onkeydown":
89+
case "onkeyup":
90+
case "onload":
91+
case "onlosecapture":
92+
case "onpropertychange":
93+
case "onreadystatechange":
94+
case "onrowsdelete":
95+
case "onrowenter":
96+
case "onrowexit":
97+
case "onrowsinserted":
98+
case "onstart":
99+
case "onscroll":
100+
case "onbeforeeditfocus":
101+
case "onactivate":
102+
case "onbeforedeactivate":
103+
case "ondeactivate":
104+
case "type":
105+
case "codebase":
106+
ret.objAttrs[args[i]] = args[i+1];
107+
break;
108+
case "width":
109+
case "height":
110+
case "align":
111+
case "vspace":
112+
case "hspace":
113+
case "class":
114+
case "title":
115+
case "accesskey":
116+
case "name":
117+
case "id":
118+
case "tabindex":
119+
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
120+
break;
121+
default:
122+
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
123+
}
124+
}
125+
ret.objAttrs["classid"] = classid;
126+
if (mimeType) ret.embedAttrs["type"] = mimeType;
127+
return ret;
128+
}
129+

0 commit comments

Comments
 (0)