new NANA_ENABLE_AUDIO to enable PCM playback
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
|
||||
#include <nana/audio/detail/audio_device.hpp>
|
||||
|
||||
#ifdef NANA_ENABLE_AUDIO
|
||||
|
||||
#include <nana/system/platform.hpp>
|
||||
|
||||
#if defined(NANA_LINUX)
|
||||
@@ -235,3 +239,5 @@ namespace nana{namespace audio
|
||||
}//end namespace detail
|
||||
}//end namespace audio
|
||||
}//end namespace nana
|
||||
|
||||
#endif //NANA_ENABLE_AUDIO
|
||||
@@ -1,4 +1,6 @@
|
||||
#include <nana/audio/detail/audio_stream.hpp>
|
||||
#ifdef NANA_ENABLE_AUDIO
|
||||
|
||||
#include <nana/charset.hpp>
|
||||
|
||||
namespace nana{ namespace audio
|
||||
@@ -92,3 +94,4 @@ namespace nana{ namespace audio
|
||||
|
||||
}//end namespace audio
|
||||
}//end namespace nana
|
||||
#endif //NANA_ENABLE_AUDIO
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
#include <nana/audio/detail/buffer_preparation.hpp>
|
||||
|
||||
#ifdef NANA_ENABLE_AUDIO
|
||||
|
||||
#include <cstring>
|
||||
|
||||
namespace nana{ namespace audio
|
||||
@@ -159,3 +162,5 @@ namespace nana{ namespace audio
|
||||
}//end namespace detail
|
||||
}//end namespace audio
|
||||
}//end namespace nana
|
||||
|
||||
#endif //NANA_ENABLE_AUDIO
|
||||
@@ -1,4 +1,7 @@
|
||||
#include <nana/audio/player.hpp>
|
||||
|
||||
#ifdef NANA_ENABLE_AUDIO
|
||||
|
||||
#include <nana/audio/detail/audio_stream.hpp>
|
||||
#include <nana/audio/detail/audio_device.hpp>
|
||||
#include <nana/audio/detail/buffer_preparation.hpp>
|
||||
@@ -62,4 +65,6 @@ namespace nana{ namespace audio
|
||||
impl_->stream.close();
|
||||
}
|
||||
}//end namespace audio
|
||||
}//end namespace nana
|
||||
}//end namespace nana
|
||||
|
||||
#endif //NANA_ENABLE_AUDIO
|
||||
Reference in New Issue
Block a user