OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::WAVEDecoder Class Reference

WAVE 形式音声データのデコーダ More...

#include <WAVEDecoder.hpp>

Inherits s3d::IAudioDecoder.

Public Member Functions

StringView name () const override
 デコーダの名前 U"WAVE" を返します。 More...
 
bool isHeader (const uint8(&bytes)[48]) const override
 WAVE 形式の先頭データであるかを返します。 More...
 
const Array< String > & possibleExtensions () const override
 WAVE 形式のファイルに想定される拡張子一覧 { U"wav" } を返します。 More...
 
AudioFormat audioFormat () const noexcept override
 WAVE 形式を示す AudioFormat を返します。 More...
 
Wave decode (FilePathView path) const override
 WAVE 形式の音声ファイルをデコードして Wave を作成します。 More...
 
Wave decode (IReader &reader, FilePathView pathHint={}) const override
 WAVE 形式の音声データをデコードして Wave を作成します。 More...
 
- Public Member Functions inherited from s3d::IAudioDecoder
virtual ~IAudioDecoder ()=default
 

Detailed Description

WAVE 形式音声データのデコーダ

Member Function Documentation

◆ audioFormat()

AudioFormat s3d::WAVEDecoder::audioFormat ( ) const
overridevirtualnoexcept

WAVE 形式を示す AudioFormat を返します。

Returns
AudioFormat::WAVE

Implements s3d::IAudioDecoder.

◆ decode() [1/2]

Wave s3d::WAVEDecoder::decode ( FilePathView  path) const
overridevirtual

WAVE 形式の音声ファイルをデコードして Wave を作成します。

Parameters
path音声ファイルのパス
Returns
作成した Wave

Reimplemented from s3d::IAudioDecoder.

◆ decode() [2/2]

Wave s3d::WAVEDecoder::decode ( IReader reader,
FilePathView  pathHint = {} 
) const
overridevirtual

WAVE 形式の音声データをデコードして Wave を作成します。

Parameters
reader音声データの IReader インタフェース
pathHintファイルパス(オプション)
Returns
作成した Wave

Implements s3d::IAudioDecoder.

◆ isHeader()

bool s3d::WAVEDecoder::isHeader ( const uint8(&)  bytes[48]) const
overridevirtual

WAVE 形式の先頭データであるかを返します。

Parameters
bytesデータの先頭 48 バイト
Returns
WAVE 形式と推測される場合 true, それ以外の場合は false

Implements s3d::IAudioDecoder.

◆ name()

StringView s3d::WAVEDecoder::name ( ) const
overridevirtual

デコーダの名前 U"WAVE" を返します。

Returns
文字列 U"WAVE"

Implements s3d::IAudioDecoder.

◆ possibleExtensions()

const Array<String>& s3d::WAVEDecoder::possibleExtensions ( ) const
overridevirtual

WAVE 形式のファイルに想定される拡張子一覧 { U"wav" } を返します。

Returns
配列 { U"wav" }

Implements s3d::IAudioDecoder.


The documentation for this class was generated from the following file: