andulv / WasapiRenderer

Directshow audio renderer using WASAPI (Shared or exclusive)
10 stars 4 forks source link

Crash / Unexpected behavior when changing device during playback #5

Open andulv opened 11 years ago

andulv commented 11 years ago

Cause: Destroys / Recreates rendererinstance when other thread(s) are feeding data to it.

Also: Media Type negotiation is based on the device's supported formats. When the device changes the agreed media type may no longer be valid.

Easiest solution: Deny changing of audio device when connected.

andulv commented 11 years ago

Workaround: Stop playback and disconnect filter before changing device.