dapphp/securimage — comment on commit eca4cd8873d2765f091a6e5b409db421a9f0be11
File:  line 0
By dapphp:

Hey,
Yeah I had planned on being able to do something like that eventually, or
instead of just adding background noise, give the option of selecting from a
mix of wav files with various types of noise or audio.

I saw the other two comments, the fopen of the /tmp file was something I
meant to remove before I committed and haven't taken it out yet.
And I'll look at that other method for mixing audio, it looks good and
solves the volume reduction problem. I just have to figure out how to make
it work for 8, 16, and 24 bit audio. I probably won't do anything with
mixing 3 files yet, but I suppose one could do $wav->mergeWav($wav2, $wav3,
$wav4); to mix N audio files together.

Thanks for the feedback.

Drew

-----Original Message-----

Maybe this is already on your to-do list:
I am thinking of having a long background noise file - like ppl talking at a
party - and then selecting a random section with the length of my generated
wav thereof, to merge. The lesser resource intensive way would be, if the
WavFile class did not read the entire data stream upon opening. You could
then just pass an offset parameter to the merge function and use fseek() -
somehow ;-).

P.S.
In case you didn't notice: I made line comments at:
https://github.com/dapphp/securimage/commit/71b9e4aaa65d7ffcef3524f5ca80fea24d4dc330
https://github.com/dapphp/securimage/commit/d87714a715ef2254d01e4146e2962a06c1a41418

---
Reply to this email directly or view it on GitHub:
https://github.com/dapphp/securimage/commit/eca4cd8873d2765f091a6e5b409db421a9f0be11#commitcomment-912454