merge

fun merge(other: AudioPool)

Merges this AudioPool with another AudioPool. New audio tracks from the other pool are added to this pool. Duplicate audio tracks (by ID) from the new pool are not added. Tracks from this pool take precedence in case of ID conflicts. Old tracks that do not exist in the other pool are destroyed and removed from this pool.

Parameters

other

The other AudioPool to merge with.