[DEV] add basic doc and licence
This commit is contained in:
parent
fe61e98059
commit
2583e527f1
33
README.md
Normal file
33
README.md
Normal file
@ -0,0 +1,33 @@
|
||||
audio
|
||||
=====
|
||||
|
||||
`audio` is simple audio basic format description
|
||||
|
||||
Instructions
|
||||
============
|
||||
|
||||
To compile:
|
||||
|
||||
lutin.py audio
|
||||
|
||||
note:
|
||||
|
||||
depend on etk library (apache 2)
|
||||
|
||||
|
||||
License (APACHE v2.0)
|
||||
=====================
|
||||
Copyright audio Edouard DUPIN
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
@ -4,8 +4,8 @@
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __AUDIO_CORE_CHANNEL_H__
|
||||
#define __AUDIO_CORE_CHANNEL_H__
|
||||
#ifndef __AUDIO_CHANNEL_H__
|
||||
#define __AUDIO_CHANNEL_H__
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
@ -10,10 +10,13 @@
|
||||
static const char* listValues[] = {
|
||||
"unknow",
|
||||
"int8",
|
||||
"int8_on_int16",
|
||||
"int16",
|
||||
"int16_on_int32",
|
||||
"int24",
|
||||
"int32",
|
||||
"int32_on_int64",
|
||||
"int64",
|
||||
"float",
|
||||
"double"
|
||||
};
|
||||
|
@ -4,8 +4,8 @@
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#ifndef __AUDIO_CORE_FORMAT_H__
|
||||
#define __AUDIO_CORE_FORMAT_H__
|
||||
#ifndef __AUDIO_FORMAT_H__
|
||||
#define __AUDIO_FORMAT_H__
|
||||
|
||||
#include <string>
|
||||
|
||||
@ -13,12 +13,15 @@ namespace audio {
|
||||
enum format {
|
||||
format_unknow,
|
||||
format_int8, //!< Signed 8 bits
|
||||
format_int8_on_int16, //!< Signed 8 bits on 16 bits data (8 bit fixpoint value)
|
||||
format_int16, //!< Signed 16 bits
|
||||
format_int16_on_int32, //!< Signed 16 bits on 32bits data (16 bit fixpoint value)
|
||||
format_int24, //!< Signed 24 bits
|
||||
format_int16_on_int32, //!< Signed 16 bits on 32 bits data (16 bit fixpoint value)
|
||||
format_int24, //!< Signed 24 bits on 32 bits (lower)
|
||||
format_int32, //!< Signed 32 bits
|
||||
format_float, //!< Floating point (single precision)
|
||||
format_double //!< Floating point (double precision)
|
||||
format_int32_on_int64, //!< Signed 32 bits on 64 bits data (32 bit fixpoint value)
|
||||
format_int64, //!< Signed 64 bits
|
||||
format_float, //!< Floating point 32 bits (single precision)
|
||||
format_double //!< Floating point 64 bits (double precision)
|
||||
};
|
||||
std::string getFormatString(enum audio::format _format);
|
||||
enum audio::format getFormatFromString(const std::string& _value);
|
||||
|
13
license.txt
Normal file
13
license.txt
Normal file
@ -0,0 +1,13 @@
|
||||
Copyright audio Edouard DUPIN
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
18
monk_audio.py
Normal file
18
monk_audio.py
Normal file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/python
|
||||
import monkModule as module
|
||||
import monkTools as tools
|
||||
|
||||
def get_desc():
|
||||
return "audio : Audio basic foramt description"
|
||||
|
||||
|
||||
def create():
|
||||
myModule = module.Module(__file__, 'audio', 'LIBRARY')
|
||||
# set documentation properties:
|
||||
myModule.set_website("http://heeroyui.github.io/audio/")
|
||||
myModule.set_website_sources("http://github.com/heeroyui/audio/")
|
||||
myModule.set_path(tools.get_current_path(__file__) + "/audio/")
|
||||
myModule.set_path_general_doc(tools.get_current_path(__file__) + "/doc/")
|
||||
# return the created description:
|
||||
return myModule
|
||||
|
Loading…
x
Reference in New Issue
Block a user