SoundPlayer 생성자

정의

SoundPlayer 클래스의 새 인스턴스를 초기화합니다.

오버로드

Name Description
SoundPlayer()

SoundPlayer 클래스의 새 인스턴스를 초기화합니다.

SoundPlayer(Stream)

클래스의 새 인스턴스를 SoundPlayer 초기화하고 지정된 Stream내에 .wav 파일을 연결합니다.

SoundPlayer(String)

클래스의 새 인스턴스를 SoundPlayer 초기화하고 지정된 .wav 파일을 연결합니다.

SoundPlayer(SerializationInfo, StreamingContext)
사용되지 않음.

SoundPlayer 클래스의 새 인스턴스를 초기화합니다.

SoundPlayer()

Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs

SoundPlayer 클래스의 새 인스턴스를 초기화합니다.

public:
 SoundPlayer();
public SoundPlayer();
Public Sub New ()

설명

이 생성자는 오디오 소스 없이 초기 SoundPlayer 화합니다. 오디오 소스 경로 SoundPlayer 로 구성될 때까지 재생 방법 중 하나가 호출될 때 경고음이 재생됩니다.

추가 정보

적용 대상

SoundPlayer(Stream)

Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs

클래스의 새 인스턴스를 SoundPlayer 초기화하고 지정된 Stream내에 .wav 파일을 연결합니다.

public:
 SoundPlayer(System::IO::Stream ^ stream);
public SoundPlayer(System.IO.Stream? stream);
public SoundPlayer(System.IO.Stream stream);
new System.Media.SoundPlayer : System.IO.Stream -> System.Media.SoundPlayer
Public Sub New (stream As Stream)

매개 변수

stream
Stream

Stream.wav 파일에 대한 A입니다.

설명

매개 변수에 Stream 전달된 파일은 streamStream .wav 파일이 포함되어야 합니다. 메서드에서 반환되는 Read 데이터는 .wav 파일 내의 Stream 데이터여야 합니다.

추가 정보

적용 대상

SoundPlayer(String)

Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs

클래스의 새 인스턴스를 SoundPlayer 초기화하고 지정된 .wav 파일을 연결합니다.

public:
 SoundPlayer(System::String ^ soundLocation);
public SoundPlayer(string soundLocation);
new System.Media.SoundPlayer : string -> System.Media.SoundPlayer
Public Sub New (soundLocation As String)

매개 변수

soundLocation
String

로드할 .wav 파일의 위치입니다.

예외

지정한 soundLocation URL 값을 확인할 수 없습니다.

설명

매개 변수에 soundLocation 전달된 문자열은 파일 경로 또는 .wav 파일의 URL일 수 있습니다. 경로 또는 URL이 유효 SoundPlayer 하지 않은 경우 여전히 생성되지만 로드 또는 재생 메서드에 대한 후속 호출은 실패합니다.

추가 정보

적용 대상

SoundPlayer(SerializationInfo, StreamingContext)

Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs
Source:
SoundPlayer.cs

주의

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

SoundPlayer 클래스의 새 인스턴스를 초기화합니다.

protected:
 SoundPlayer(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected SoundPlayer(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext context);
protected SoundPlayer(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Media.SoundPlayer : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Media.SoundPlayer
new System.Media.SoundPlayer : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Media.SoundPlayer
Protected Sub New (serializationInfo As SerializationInfo, context As StreamingContext)

매개 변수

serializationInfo
SerializationInfo

SerializationInfo 역직렬화에 사용할 개체입니다.

context
StreamingContext

역직렬화에 사용할 대상입니다.

특성

예외

지정된 인 SoundLocationserializationInfo 확인할 수 없습니다.

추가 정보

적용 대상