When writing your own background music custom server and music players, you must consider how to pass dynamic voice data to a custom server.
You must set the dBm level in the CA_Play_Voice_Stream custom server API call. It is your responsibility to ensure that Blueworx Voice Response never receives audio data which exceeds this peak dBm level.
To find out this what this level should be, run your program to record some incoming audio data. Use a sample that contains the loudest sound the source will send. Use CA_Import_Voice to convert the voice data to an elements structure, then use CA_Get_Element_Info to find the dBm level.
When you know what the dBm level is, your music player can pass this dBm level to CA_Play_Voice_Stream.
Use cvelem off-line to pre-process music into elements more efficiently than using CA_import() and CA_Play_Voice_Elements() dynamically.