Ok, the above trigger is now implemented in latest CB Activity build release. You should be able to do something like the following.
Global
Triggers: activity_onDisplayNotificationButton
Type: Code
User: Self
Access: Registered
Conditions
Field: Custom > Value
Custom Value: [var1]
Operator: Greater Than
Value: 0
Action
Method: JavaScript
Code: PLAY_AUDIO_JS_HERE