<commit_before>//=====================================================================//
/*!	@file
	@brief	効果音、BGM クラス
	@author	平松邦仁 (<EMAIL>)
*/
//=====================================================================//
#include "sound.hpp"
#include <ctime>
#include <unistd.h>
#include <boost/foreach.hpp>
#include "pcm.hpp"
#include "utils/file_info.hpp"

namespace al {

	using namespace al;

	static void silent_(sound::sstream_t& sst, const audio_info& ainfo, uint32_t len)
	{
		audio_io::wave_handle h = sst.audio_io_->status_stream(sst.slot_);
		if(h) {
			audio aif;
			if(ainfo.chanels == 1) {
				aif = audio(new audio_mno16);
			} else if(ainfo.chanels == 2) {
				aif = audio(new audio_sto16);
			}
			aif->create(ainfo.frequency, len);
			aif->zero();
			sst.audio_io_->queue_stream(sst.slot_, h, aif);
		}
	}


	static void play_task_(sound::sstream_t& sst, snd_files& sdf,
		std::string& root, utils::file_infos& src, const std::string& file)
	{
		static const int stream_buff_size = 2048;

		utils::file_infos fis;
		utils::filter_file_infos(src, sdf.get_file_exts(), fis);

		uint32_t i = 0;<commit_msg>update file_info<commit_after>//=====================================================================//
/*!	@file
	@brief	効果音、BGM クラス
	@author	平松邦仁 (<EMAIL>)
*/
//=====================================================================//
#include "sound.hpp"
#include <ctime>
#include <unistd.h>
#include <boost/foreach.hpp>
#include "pcm.hpp"
#include "utils/file_info.hpp"

namespace al {

	using namespace al;

	static void silent_(sound::sstream_t& sst, const audio_info& ainfo, uint32_t len)
	{
		audio_io::wave_handle h = sst.audio_io_->status_stream(sst.slot_);
		if(h) {
			audio aif;
			if(ainfo.chanels == 1) {
				aif = audio(new audio_mno16);
			} else if(ainfo.chanels == 2) {
				aif = audio(new audio_sto16);
			}
			aif->create(ainfo.frequency, len);
			aif->zero();
			sst.audio_io_->queue_stream(sst.slot_, h, aif);
		}
	}


	static void play_task_(sound::sstream_t& sst, snd_files& sdf,
		std::string& root, utils::file_infos& src, const std::string& file)
	{
		static const int stream_buff_size = 2048;

		auto fis = utils::filter_file_infos(src, sdf.get_file_exts());

		uint32_t i = 0;
{'fraction_non_alphanumeric': 0.2630395683453237, 'fraction_numerical': 0.013489208633093525, 'mean_word_length': 4.824607329842932, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '648426', 'n_tokens_mistral': 924, 'n_tokens_neox': 826, 'n_words': 165}