関数
WAV 音声入出力
音声入出力

関数

template<class T , class Allocator >
bool mist::read_wav (array< T, Allocator > &sound, const std::string &filename, unsigned int &sampling_rate)
 WAVファイルから音声データををMISTコンテナに読み込む
template<class T , class Allocator >
bool mist::read_wav (array< T, Allocator > &sound, const std::wstring &filename, unsigned int &sampling_rate)
 WAVファイルから音声データををMISTコンテナに読み込む
template<class T , class Allocator >
bool mist::read_wav (array< T, Allocator > &sound, const std::string &filename)
 WAVファイルから音声データををMISTコンテナに読み込む
template<class T , class Allocator >
bool mist::read_wav (array< T, Allocator > &sound, const std::wstring &filename)
 WAVファイルから音声データををMISTコンテナに読み込む
template<class T , class Allocator >
bool mist::write_wav (const array< T, Allocator > &sound, const std::string &filename, typename array< T, Allocator >::size_type wav_bits, typename array< T, Allocator >::size_type sampling_rate)
 MISTコンテナのデータをWAVファイルへ出力する
template<class T , class Allocator >
bool mist::write_wav (const array< T, Allocator > &sound, const std::wstring &filename, typename array< T, Allocator >::size_type wav_bits, typename array< T, Allocator >::size_type sampling_rate)
 MISTコンテナのデータをWAVファイルへ出力する

説明

次のヘッダをインクルードする
#include <mist/io/wav.h>

関数

template<class T , class Allocator >
bool mist::read_wav ( array< T, Allocator > &  sound,
const std::string &  filename,
unsigned int &  sampling_rate 
)

WAVファイルから音声データををMISTコンテナに読み込む

引数
[out]sound… 音声データを出力するMISTコンテナ
[in]filename… WAVファイル名
[out]sampling_rate… WAVファイルに記録されているサンプリングレート
戻り値
true… WAVファイルの読み込みに成功
false… ファイルの読み込みに失敗(ファイルが存在しない,不適切なファイル等・・・)

参照元 mist::read_wav().

template<class T , class Allocator >
bool mist::read_wav ( array< T, Allocator > &  sound,
const std::wstring &  filename,
unsigned int &  sampling_rate 
)

WAVファイルから音声データををMISTコンテナに読み込む

引数
[out]sound… 音声データを出力するMISTコンテナ
[in]filename… WAVファイル名
[out]sampling_rate… WAVファイルに記録されているサンプリングレート
戻り値
true… WAVファイルの読み込みに成功
false… ファイルの読み込みに失敗(ファイルが存在しない,不適切なファイル等・・・)

参照先 mist::read_wav(), と mist::wstr2str().

template<class T , class Allocator >
bool mist::read_wav ( array< T, Allocator > &  sound,
const std::string &  filename 
)

WAVファイルから音声データををMISTコンテナに読み込む

引数
[out]sound… 音声データを出力するMISTコンテナ
[in]filename… WAVファイル名
戻り値
true… WAVファイルの読み込みに成功
false… ファイルの読み込みに失敗(ファイルが存在しない,不適切なファイル等・・・)

参照先 mist::read_wav().

template<class T , class Allocator >
bool mist::read_wav ( array< T, Allocator > &  sound,
const std::wstring &  filename 
)

WAVファイルから音声データををMISTコンテナに読み込む

引数
[out]sound… 音声データを出力するMISTコンテナ
[in]filename… WAVファイル名
戻り値
true… WAVファイルの読み込みに成功
false… ファイルの読み込みに失敗(ファイルが存在しない,不適切なファイル等・・・)

参照先 mist::read_wav(), と mist::wstr2str().

template<class T , class Allocator >
bool mist::write_wav ( const array< T, Allocator > &  sound,
const std::string &  filename,
typename array< T, Allocator >::size_type  wav_bits,
typename array< T, Allocator >::size_type  sampling_rate 
)

MISTコンテナのデータをWAVファイルへ出力する

詳細な説明や関数の使用例を書く

引数
[in]sound… 音声データの入ったMISTコンテナ
[in]filename… 出力ファイル名
[in]wav_bits… 出力するWAVファイルの量子化ビット数
[in]sampling_rate… 出力するWAVファイルのサンプリングレート
戻り値
true… WAVファイルの出力に成功
false… ファイルの出力に失敗

参照元 mist::write_wav().

template<class T , class Allocator >
bool mist::write_wav ( const array< T, Allocator > &  sound,
const std::wstring &  filename,
typename array< T, Allocator >::size_type  wav_bits,
typename array< T, Allocator >::size_type  sampling_rate 
)

MISTコンテナのデータをWAVファイルへ出力する

詳細な説明や関数の使用例を書く

引数
[in]sound… 音声データの入ったMISTコンテナ
[in]filename… 出力ファイル名
[in]wav_bits… 出力するWAVファイルの量子化ビット数
[in]sampling_rate… 出力するWAVファイルのサンプリングレート
戻り値
true… WAVファイルの出力に成功
false… ファイルの出力に失敗

参照先 mist::write_wav(), と mist::wstr2str().


Generated on Wed Nov 12 2014 19:44:28 for MIST by doxygen 1.8.1.2