Media_MixSounds ( container1 ; container2 )
Media_MixSounds mixes the contents of two sound files so they play simultaneously.
Parameter | Description |
---|---|
container1 | Location of sound 1. |
container2 | Location of sound 2. |
The result must be returned into a container field.
If you want to mix two sounds together but with one of the sounds starting later than the other, you can first add a length of silence to the later sound (using Media_CreateSound and Media_AppendSound) before calling Media_MixSounds.
Use Media_GetLastError to check for any errors of this function.
Returns
The result is first sound and the second sound overlapping each other.
In the case of an error, nothing is returned to the container field.
Example
To mix Sound A with Sound B:
Set Field [ MyTable::Sound Result ;
Media_MixSounds (
MyTable::Sound A
MyTable::Sound B
) ]