__construct()
getChannelsNumber()
getDataRate()
getDuration()
getFilePath()
getHeaders()
getHeadersSize()
getWavChunk()
headersToString()
setDataChunkSize()
setFilePath()
autoload()
$FilePath
$Headers
$HeadersSize
This class maps the current analyzed wav file. It has the methods to extract the chunk and the data from the file.
LICENSE: "Audero Wav Extractor" (from now on "The software") is released under the CC BY-NC 3.0 ("Creative Commons Attribution NonCommercial 3.0") license. More details can be found here: http://creativecommons.org/licenses/by-nc/3.0/
WARRANTY: The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
| author | Aurelio De Rosa |
|---|---|
| version | 1.0 |
| license | CC BY-NC 3.0 |
| link | https://bitbucket.org/AurelioDeRosa/audero-wav-extractor |
| package | Audero\AuderoWavExtractor |
__construct(string $FilePath)
stringThe filename, including the path, of the managed file wav
getChannelsNumber() : int | null
intnull
getDataRate() : int | null
intnull
getDuration() : int
intThe duration of the file in millisecondsgetFilePath() : string
stringgetHeaders(int $HeaderSize) : array
intThe amount of bytes of the current wav headers (including dropped chunks)
\Exception |
If the wav file is not available or cannot be open. |
|---|
arrayThe array that contains the headers (excluding dropped chunks)getHeadersSize(\$OnlyRecognizedChunks $OnlyRecognizedChunks) : int
\$OnlyRecognizedChunksIf the value is FALSE (default), the method will calculate the size of the actual headers. This means that, if there were any dropped chunks, these will be counted. Otherwise, the method returns just the bytes of the recognized chunks.
intThe number of bytesgetWavChunk(int $Start, int $End) : string
intThe time in milliseconds from which to start
intThe time in milliseconds from which to end
\Exception |
If the file wav is not available or cannot be open. |
|---|
stringheadersToString() : string
stringsetDataChunkSize(int $Size)
int
setFilePath(string $FilePath)
string
\InvalidArgumentException |
If the file does not exist or if the file does not appear to be a wav. |
|---|
autoload()
$FilePath : string
$Headers : array
$HeadersSize : int