0
Is there a PHP function for mixing multiple files (specifically audio files) into one? I don’t want to concatenate the files, but add the equal indexes in a destination file. For example: take an audio file with guitar and another with drums and mix the two in one, to then download.
Maybe these links will help you http://stackoverflow.com/questions/14393203/merge-mp3-files-into-one-and-then-save-in-a-folder-using-php http://stackoverflow.com/questions/9645438/mixing-2-audio-files-and-return-as-1-using-php
– Dalton Menezes
Valeu Dalton (Y)
– Filipe Beck
Unfortunately not what I need. The class described in these links serves to concatenate the files. I need to mix them.
– Filipe Beck
Could better describe what/how the mixing process would be?
– Dalton Menezes
I need to play a streaming sound, but the tracks are separate (an audio file for each instrument). I need to combine these tracks and then download.
– Filipe Beck
take a look at this question here, logic is for any language, for MP3 you will need some Decode, do not know if there is anything native in PHP.
– ederwander
Thanks edervander. Yeah, the biggest problem is with the same decoding. I was mixing the buffers and uploading a file just for preview. The problem is that I can display a list of all the tracks already created for all sounds, with the removal option. So if I have a sound with guitar and drums, and delete the track with drums, the preview will not change, making the full sound become inconsistent (still playing the track removed).
– Filipe Beck