To complete the upload, pa_stream_finish_upload() is called and the sample will receive the same name as the stream. If the upload should be aborted, simply call pa_stream_disconnect().
pa_operation *o; o = pa_context_play_sample(my_context, "sample2", // Name of my sample NULL, // Use default sink PA_VOLUME_NORM, // Full volume NULL, // Don't need a callback NULL ); if (o) pa_operation_unref(o);
1.5.7.1