Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
VACore
Commits
c33cfe5c
Commit
c33cfe5c
authored
Feb 02, 2017
by
Jonas Stienen
Browse files
Merge branch 'develop' of
https://git.rwth-aachen.de/ita/VACore
into develop
parents
3574f083
05e352b9
Changes
8
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
c33cfe5c
...
...
@@ -188,6 +188,9 @@ else( NOT ITA_VA_BUILD_STATIC )
endif
(
BUILD_SHARED_LIBS
)
endif
(
NOT ITA_VA_BUILD_STATIC
)
if
(
NOT WIN32
)
add_definitions
(
-std=gnu++11
)
endif
(
)
add_definitions
(
"-DVACORE_DEFAULT_LOG_LEVEL=
${
ITA_VACORE_DEFAULT_DEBUG_LEVEL
}
"
)
add_definitions
(
"-DVACORE_VERSION_MAJOR=
\"
${
ITA_VACORE_VERSION_MAJOR
}
\"
"
)
...
...
src/Audiosignals/VAAudioSignalSourceManager.h
View file @
c33cfe5c
#ifndef __VA_AUDIOSIGNALSOURCEMANAGER_H__
#define __VA_AUDIOSIGNALSOURCEMANAGER_H__
#include <map>
#include <string>
#include <vector>
#include <ITAAtomicPrimitives.h>
#include "../Drivers/Audio/VAAudioDriverConfig.h"
#include <VACoreDefinitions.h>
#include <VAAudioSignalSource.h>
#include <ITACriticalSection.h>
#include <ITASampleBuffer.h>
#include <tbb/concurrent_queue.h>
#include <ITAAtomicPrimitives.h>
#include <VistaInterProcComm/Concurrency/VistaThreadEvent.h>
#include <VAAudiosignalSource.h>
#include "../Drivers/Audio/VAAudioDriverConfig.h"
#include <VACoreDefinitions.h>
#include <tbb/concurrent_queue.h>
#include <map>
#include <string>
#include <vector>
#include <set>
class
ITADatasource
;
class
IVACore
;
class
CVAAudiofileSignalSource
;
...
...
src/Audiosignals/VAAudiofileSignalSource.h
View file @
c33cfe5c
...
...
@@ -4,7 +4,7 @@
#include <VAAudioSignalSource.h>
#include <ITAAtomicPrimitives.h>
#include <ITAData
s
ourceDelegator.h>
#include <ITAData
S
ourceDelegator.h>
#include <ITASampleBuffer.h>
#include <ITASampleFrame.h>
...
...
src/Audiosignals/VAEngineSignalSource.h
View file @
c33cfe5c
...
...
@@ -4,7 +4,7 @@
#include <VAAudioSignalSource.h>
#include <VAObject.h>
#include <ITAData
s
ourceRealization.h>
#include <ITAData
S
ourceRealization.h>
#include <ITASampleBuffer.h>
#include <ITAAtomicPrimitives.h>
...
...
src/Audiosignals/VAMachineSignalSource.h
View file @
c33cfe5c
...
...
@@ -4,7 +4,7 @@
#include <VAAudioSignalSource.h>
#include <VAObject.h>
#include <ITAData
s
ourceRealization.h>
#include <ITAData
S
ourceRealization.h>
#include <ITASampleBuffer.h>
#include <ITAAtomicPrimitives.h>
...
...
src/VAAudiostreamTracker.h
View file @
c33cfe5c
...
...
@@ -24,13 +24,15 @@
#define __VA_AUDIOSTREAMTRACKER_H__
#include <VABaseDefinitions.h>
#include "Audiosignals/VAAudioSignalSourceManager.h"
#include "Utils/VADebug.h"
#include <ITAClock.h>
#include <ITAData
s
ource.h>
#include <ITAStop
w
atch.h>
#include <ITAData
S
ource.h>
#include <ITAStop
W
atch.h>
#include <ITAStreamInfo.h>
#include <string>
//! Audio stream state implementation
...
...
src/VACoreImpl.cpp
View file @
c33cfe5c
...
...
@@ -16,6 +16,7 @@
#include <VABaseDefinitions.h>
#include <VAStruct.h>
#include <VACoreVersion.h>
#include <VAException.h>
// VA includes
#include "Audiosignals/VAAudioSignalSourceManager.h"
...
...
@@ -39,7 +40,6 @@
#include "VAAudiostreamTracker.h"
#include "VABaseDefinitions.h"
#include "VADirectivityManager.h"
#include <VAException.h>
#include "VALog.h"
#include "VACoreEventManager.h"
#include "VACoreFactory.h"
...
...
@@ -50,14 +50,14 @@
#include <ITAASCIITable.h>
#include <ITAClock.h>
#include <ITAException.h>
#include <ITAFile
s
ystemUtils.h>
#include <ITAFile
S
ystemUtils.h>
#include <ITAFunctors.h>
#include <ITAPeakDetector.h>
#include <ITASoundSample.h>
#include <ITASoundSampler.h>
#include <ITASoundSamplePool.h>
#include <ITAStreamAmplifier.h>
#include <ITAStreamPatch
b
ay.h>
#include <ITAStreamPatch
B
ay.h>
#include <ITAStreamProbe.h>
#include <ITAStringUtils.h>
...
...
src/VALog.h
View file @
c33cfe5c
...
...
@@ -17,7 +17,8 @@
#include <iostream>
#include <list>
#include <cstdarg>
#include <stdarg.h>
#include <stdio.h>
extern
VACORE_API
std
::
ostream
*
VA_STDOUT
;
extern
VACORE_API
std
::
ostream
*
VA_STDERR
;
...
...
@@ -103,35 +104,29 @@ private:
* niederpriorisiertem Thread auf die Konsole oder Visual Studio Ausgabe
* auszugeben.
*/
class
CVARealtimeLogStream
{
class
CVARealtimeLogStream
{
public:
inline
CVARealtimeLogStream
(
ITAClock
*
pClock
=
ITAClock
::
getDefaultClock
()
)
:
m_pClock
(
pClock
)
{
CVARealtimeLogStream
(
ITAClock
*
pClock
=
ITAClock
::
getDefaultClock
()
)
:
m_pClock
(
pClock
)
{
// Bei Ausgabe-Thread registrieren (Singleton)
CVARealtimeLogger
::
GetInstance
()
->
Register
(
this
);
}
;
}
inline
virtual
~
CVARealtimeLogStream
()
{
virtual
~
CVARealtimeLogStream
()
{
// Bei Thread deregistieren
CVARealtimeLogger
::
GetInstance
()
->
Unregister
(
this
);
}
;
}
inline
std
::
string
GetName
()
const
{
std
::
string
GetName
()
const
{
return
m_sName
;
}
;
}
inline
void
SetName
(
const
std
::
string
&
sName
)
{
void
SetName
(
const
std
::
string
&
sName
)
{
m_sName
=
sName
;
}
;
}
// Ausgabe
inline
void
Printf
(
const
char
*
format
,
...
)
{
void
Printf
(
const
char
*
format
,
...
)
{
char
buf
[
16384
];
va_list
args
;
va_start
(
args
,
format
);
...
...
@@ -140,7 +135,7 @@ public:
m_qLog
.
push
(
CVALogItem
(
m_pClock
->
getTime
(),
m_sName
,
buf
)
);
// TODO: Thread zur Ausgabe anwerfen ggf.
}
;
}
private:
ITAClock
*
m_pClock
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment