Bagikan melalui


AudioTrack.OpenFailed Kejadian

Definisi

Terjadi ketika AudioTrack gagal dibuka.

// Register
event_token OpenFailed(TypedEventHandler<AudioTrack, AudioTrackOpenFailedEventArgs const&> const& handler) const;

// Revoke with event_token
void OpenFailed(event_token const* cookie) const;

// Revoke with event_revoker
AudioTrack::OpenFailed_revoker OpenFailed(auto_revoke_t, TypedEventHandler<AudioTrack, AudioTrackOpenFailedEventArgs const&> const& handler) const;
public event TypedEventHandler<AudioTrack,AudioTrackOpenFailedEventArgs> OpenFailed;
function onOpenFailed(eventArgs) { /* Your code */ }
audioTrack.addEventListener("openfailed", onOpenFailed);
audioTrack.removeEventListener("openfailed", onOpenFailed);
- or -
audioTrack.onopenfailed = onOpenFailed;
Public Custom Event OpenFailed As TypedEventHandler(Of AudioTrack, AudioTrackOpenFailedEventArgs) 

Jenis Acara

Persyaratan Windows

Rangkaian perangkat
Windows 10 Anniversary Edition (diperkenalkan dalam 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v3.0)

Keterangan

Daftar untuk acara OpenFailed untuk AudioTrack dari dalam penanganan aktivitas AudioTracksChanged untuk MediaPlaybackItem, yang dinaikkan setiap kali trek audio ditambahkan ke item.

Berlaku untuk