You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
I am trying to append multiple mp3 files (same encoding), but the files do not get appended.
Only the first file is saved in the final output.
Example:
Doing more tests, it seems the added function (to fix detection of end of file)
$this->memoryPointer = min($this->memoryLength, $index + $length);
//this is the problem ->
if ($this->memoryPointer >= $this->memoryLength) {
return false;
}
Is causing the problem with append. But if we remove this, in some cases it goes in an infinite loop.
Hello
I am trying to append multiple mp3 files (same encoding), but the files do not get appended.
Only the first file is saved in the final output.
Example:
$file_mp3= \falahati\PHPMP3\MpegAudio::fromFile("audio1.mp3");
$file_mp3->append(\falahati\PHPMP3\MpegAudio::fromFile("audio2.mp3"));
$file_mp3->saveFile("final_file.mp3");
No errors, only the first mp3 is added in the final file, and the final saved file size is equal to file 1.
Can you please help?
The text was updated successfully, but these errors were encountered: