[DEV] remove dependency of unistd.h
This commit is contained in:
parent
429a1cd062
commit
34eb6d5cf0
@ -9,7 +9,7 @@
|
|||||||
#if defined(ORCHESTRA_BUILD_ALSA)
|
#if defined(ORCHESTRA_BUILD_ALSA)
|
||||||
|
|
||||||
#include <alsa/asoundlib.h>
|
#include <alsa/asoundlib.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <audio/orchestra/Interface.hpp>
|
#include <audio/orchestra/Interface.hpp>
|
||||||
#include <audio/orchestra/debug.hpp>
|
#include <audio/orchestra/debug.hpp>
|
||||||
#include <etk/stdTools.hpp>
|
#include <etk/stdTools.hpp>
|
||||||
@ -1167,7 +1167,7 @@ void audio::orchestra::api::Alsa::callbackEventOneCycleRead() {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ATA_ERROR("audio read error, " << snd_strerror(result) << ".");
|
ATA_ERROR("audio read error, " << snd_strerror(result) << ".");
|
||||||
usleep(10000);
|
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||||
}
|
}
|
||||||
// TODO : Notify application ... audio::orchestra::error_warning;
|
// TODO : Notify application ... audio::orchestra::error_warning;
|
||||||
goto noInput;
|
goto noInput;
|
||||||
@ -1521,7 +1521,7 @@ void audio::orchestra::api::Alsa::callbackEventOneCycleMMAPRead() {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ATA_ERROR("audio read error, " << snd_strerror(result) << ".");
|
ATA_ERROR("audio read error, " << snd_strerror(result) << ".");
|
||||||
usleep(10000);
|
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||||
}
|
}
|
||||||
// TODO : Notify application ... audio::orchestra::error_warning;
|
// TODO : Notify application ... audio::orchestra::error_warning;
|
||||||
goto noInput;
|
goto noInput;
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#ifdef ORCHESTRA_BUILD_JAVA
|
#ifdef ORCHESTRA_BUILD_JAVA
|
||||||
|
|
||||||
//#include <ewol/context/Context.h>
|
//#include <ewol/context/Context.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <audio/orchestra/Interface.hpp>
|
#include <audio/orchestra/Interface.hpp>
|
||||||
#include <audio/orchestra/debug.hpp>
|
#include <audio/orchestra/debug.hpp>
|
||||||
#include <audio/orchestra/api/AndroidNativeInterface.hpp>
|
#include <audio/orchestra/api/AndroidNativeInterface.hpp>
|
||||||
|
@ -635,7 +635,7 @@ bool audio::orchestra::api::Core::open(uint32_t _device,
|
|||||||
if (microCounter > 5000000) {
|
if (microCounter > 5000000) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
usleep(5000);
|
std::this_thread::sleep_for(std::chrono::milliseconds(5));
|
||||||
}
|
}
|
||||||
// Remove the property listener.
|
// Remove the property listener.
|
||||||
AudioObjectRemovePropertyListener(id, &tmp, &rateListener, (void *) &reportedRate);
|
AudioObjectRemovePropertyListener(id, &tmp, &rateListener, (void *) &reportedRate);
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import <AudioToolbox/AudioToolbox.h>
|
#import <AudioToolbox/AudioToolbox.h>
|
||||||
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <audio/orchestra/Interface.hpp>
|
#include <audio/orchestra/Interface.hpp>
|
||||||
#include <audio/orchestra/debug.hpp>
|
#include <audio/orchestra/debug.hpp>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
// must run before :
|
// must run before :
|
||||||
#if defined(ORCHESTRA_BUILD_JACK)
|
#if defined(ORCHESTRA_BUILD_JACK)
|
||||||
#include <unistd.h>
|
|
||||||
#include <climits>
|
#include <climits>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <audio/orchestra/Interface.hpp>
|
#include <audio/orchestra/Interface.hpp>
|
||||||
@ -52,7 +52,7 @@ ememory::SharedPtr<audio::orchestra::Api> audio::orchestra::api::Jack::create()
|
|||||||
// stream cannot be opened.
|
// stream cannot be opened.
|
||||||
|
|
||||||
#include <jack/jack.h>
|
#include <jack/jack.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#if defined(ORCHESTRA_BUILD_PULSE)
|
#if defined(ORCHESTRA_BUILD_PULSE)
|
||||||
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <climits>
|
#include <climits>
|
||||||
#include <audio/orchestra/Interface.hpp>
|
#include <audio/orchestra/Interface.hpp>
|
||||||
#include <audio/orchestra/debug.hpp>
|
#include <audio/orchestra/debug.hpp>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include <etk/etk.hpp>
|
#include <etk/etk.hpp>
|
||||||
#include <test-debug/debug.hpp>
|
#include <test-debug/debug.hpp>
|
||||||
#include <unistd.h>
|
|
||||||
#include <audio/orchestra/Interface.hpp>
|
#include <audio/orchestra/Interface.hpp>
|
||||||
|
|
||||||
int main(int _argc, const char **_argv) {
|
int main(int _argc, const char **_argv) {
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include <etk/etk.hpp>
|
#include <etk/etk.hpp>
|
||||||
#include <test-debug/debug.hpp>
|
#include <test-debug/debug.hpp>
|
||||||
#include <unistd.h>
|
|
||||||
#include <audio/orchestra/Interface.hpp>
|
#include <audio/orchestra/Interface.hpp>
|
||||||
|
|
||||||
int main(int _argc, const char **_argv) {
|
int main(int _argc, const char **_argv) {
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include <etk/etk.hpp>
|
#include <etk/etk.hpp>
|
||||||
#include <test-debug/debug.hpp>
|
#include <test-debug/debug.hpp>
|
||||||
#include <unistd.h>
|
|
||||||
#include <audio/orchestra/Interface.hpp>
|
#include <audio/orchestra/Interface.hpp>
|
||||||
|
|
||||||
int main(int _argc, const char **_argv) {
|
int main(int _argc, const char **_argv) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user