[BUILD] update new lutin 0.5.3
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#!/usr/bin/python
|
||||
import lutinModule as module
|
||||
import lutinTools as tools
|
||||
import lutinDebug as debug
|
||||
import lutin.module as module
|
||||
import lutin.tools as tools
|
||||
|
||||
def get_desc():
|
||||
return "river_sample_write : Write some data"
|
||||
@@ -9,12 +8,10 @@ def get_desc():
|
||||
|
||||
def create(target):
|
||||
myModule = module.Module(__file__, 'river_sample_write', 'BINARY')
|
||||
|
||||
myModule.add_src_file([
|
||||
'main.cpp',
|
||||
])
|
||||
myModule.add_module_depend(['river', 'etk'])
|
||||
|
||||
myModule.add_module_depend(['audio_river', 'etk'])
|
||||
return myModule
|
||||
|
||||
|
||||
|
@@ -4,9 +4,9 @@
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
#include <river/river.h>
|
||||
#include <river/Manager.h>
|
||||
#include <river/Interface.h>
|
||||
#include <audio/river/river.h>
|
||||
#include <audio/river/Manager.h>
|
||||
#include <audio/river/Interface.h>
|
||||
#include <etk/etk.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -28,7 +28,7 @@ static const std::string configurationRiver =
|
||||
"}\n";
|
||||
|
||||
void onDataNeeded(void* _data,
|
||||
const std11::chrono::system_clock::time_point& _time,
|
||||
const audio::Time& _time,
|
||||
size_t _nbChunk,
|
||||
enum audio::format _format,
|
||||
uint32_t _frequency,
|
||||
@@ -50,7 +50,7 @@ void onDataNeeded(void* _data,
|
||||
}
|
||||
}
|
||||
|
||||
int main(int _argc, char **_argv) {
|
||||
int main(int _argc, const char **_argv) {
|
||||
// the only one init for etk:
|
||||
etk::init(_argc, _argv);
|
||||
for (int32_t iii=0; iii<_argc ; ++iii) {
|
||||
@@ -63,11 +63,11 @@ int main(int _argc, char **_argv) {
|
||||
}
|
||||
}
|
||||
// initialize river interface
|
||||
river::initString(configurationRiver);
|
||||
audio::river::initString(configurationRiver);
|
||||
// Create the River manager for tha application or part of the application.
|
||||
std11::shared_ptr<river::Manager> manager = river::Manager::create("river_sample_read");
|
||||
std11::shared_ptr<audio::river::Manager> manager = audio::river::Manager::create("river_sample_read");
|
||||
// create interface:
|
||||
std11::shared_ptr<river::Interface> interface;
|
||||
std11::shared_ptr<audio::river::Interface> interface;
|
||||
//Get the generic input:
|
||||
interface = manager->createOutput(48000,
|
||||
std::vector<audio::channel>(),
|
||||
|
Reference in New Issue
Block a user