C# 클래스 javazoom.jl.player.AudioDeviceFactory

An AudioDeviceFactory class is responsible for creating a specific AudioDevice implementation. A factory implementation can be as simple or complex as desired and may support just one implementation or may return several implementations depending upon the execution environment.

When implementing a factory that provides an AudioDevice that uses class that may not be present, the factory should dynamically link to any specific implementation classes required to instantiate or test the audio implementation. This is so that the application as a whole can run without these classes being present. The audio device implementation, however, will usually statically link to the classes required. (See the JavaSound deivce and factory for an example of this.)

파일 보기 프로젝트 열기: RHY3756547/FreeSO 1 사용 예제들

공개 메소드들

메소드 설명
createAudioDevice ( ) : AudioDevice

Creates a new AudioDevice.

보호된 메소드들

메소드 설명
instantiate ( ClassLoader loader, System name ) : AudioDevice

Creates an instance of an AudioDevice implementation.

메소드 상세

createAudioDevice() 공개 추상적인 메소드

Creates a new AudioDevice.
public abstract createAudioDevice ( ) : AudioDevice
리턴 AudioDevice

instantiate() 보호된 메소드

Creates an instance of an AudioDevice implementation.
protected instantiate ( ClassLoader loader, System name ) : AudioDevice
loader ClassLoader
name System
리턴 AudioDevice