new NANA_ENABLE_AUDIO to enable PCM playback

This commit is contained in:
Jinhao
2016-01-28 22:36:15 +08:00
parent 1c938a06fd
commit 8eb131e093
10 changed files with 50 additions and 7 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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