[
https://issues.apache.org/jira/browse/CB-10188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Collings closed CB-10188.
-------------------------------
Resolution: Not A Problem
Read into ios wav headers and found out about the FLLR section, is inserted
where i expected DATA to be, so reading the file properly has fixed this
> iOS Cordova Media Plugin reports wrong Subchunk2Size always 4044 when reading
> a recorded wav
> --------------------------------------------------------------------------------------------
>
> Key: CB-10188
> URL: https://issues.apache.org/jira/browse/CB-10188
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Media
> Environment: iOS Simulator and iOS Device
> Reporter: James Collings
> Priority: Minor
>
> cordova-plugin-media: v1.0.1
> I am using the cordova-plugin-media to record wav files, then i take that
> file and read the wav header this is what it reports:
> {noformat}
> [Log] ----debugWAVHeader---- (recorderDemo.js, line 485)
> [Log] ChunkSize – 332748 (recorderDemo.js, line 488)
> [Log] Subchunk1Size – 16 (recorderDemo.js, line 490)
> [Log] AudioFormat – 1 (recorderDemo.js, line 492)
> [Log] NumChannels – 2 (recorderDemo.js, line 494)
> [Log] SampleRate – 44100 (recorderDemo.js, line 496)
> [Log] ByteRate – 176400 (recorderDemo.js, line 498)
> [Log] BlockAlign – 4 (recorderDemo.js, line 500)
> [Log] BitsPerSample – 16 (recorderDemo.js, line 502)
> [Log] Subchunk2Size – 4044 (recorderDemo.js, line 504)
> {noformat}
> The Subchunk2Size which is the 40th byte within the wav header, no matter the
> length of track the saved file always has a Subchunk2Size of 4044.
> Wav Header: Reference: http://soundfile.sapp.org/doc/WaveFormat/
> I am reading the header for the file as a blob, using a dataview to get the
> value.
> {noformat}
> var header = new DataView(this.result);
> console.log('Subchunk2Size', header.getUint32(40, true) );
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]