Trail: Sound
The Java Sound API is a low-level API for effecting and controlling the input and output of sound media, including both audio and Musical Instrument Digital Interface (MIDI) data. The Java Sound API provides explicit control over the capabilities normally required for sound input and output, in a framework that promotes extensibility and flexibility.
The Java Sound API fulfills the needs of a wide range of application developers. Potential application areas include:
Communication frameworks, such as conferencing and telephony
End-user content delivery systems, such as media players and music using streamed content
Interactive application programs, such as games and Web sites that use dynamic content
Content creation and editing
Tools, toolkits, and utilities
The Java Sound API provides the lowest level of sound support on the Java platform. It provides application programs with a great amount of control over sound operations, and it is extensible. For example, the Java Sound API supplies mechanisms for installing, accessing, and manipulating system resources such as audio mixers, MIDI synthesizers, other audio or MIDI devices, file readers and writers, and sound format converters. The Java Sound API does not include sophisticated sound editors or graphical tools, but it provides capabilities upon which such programs can be built. It emphasizes low-level control beyond that commonly expected by the end user.
The Java Sound API includes support for both digital audio and MIDI data. These two major modules of functionality are provided in separate packages:
javax.sound.sampled – This package specifies interfaces for capture, mixing, and playback of digital (sampled) audio.
javax.sound.midi – This package provides interfaces for MIDI synthesis, sequencing, and event transport.
Two other packages permit service providers (as opposed to application developers) to create custom software components that extend the capabilities of an implementation of the Java Sound API:
javax.sound.sampled.spi
javax.sound.midi.spi
This page introduces the sampled-audio system, the MIDI system, and the SPI packages. Each package is then discussed in greater detail later in the tutorial.
Note:
There are other Java platform APIs that also have sound-related elements. The Java Media Framework API (JMF) is a higher-level API that is currently available as a Standard Extension to the Java platform. JMF specifies a unified architecture, messaging protocol, and programming interface for capturing and playing back time-based media. JMF provides a simpler solution for basic media-player application programs, and it enables synchronization between different media types, such as audio and video. On the other hand, programs that focus on sound can benefit from the Java Sound API, especially if they require more advanced features, such as the ability to carefully control buffered audio playback or directly manipulate a MIDI synthesizer. Other Java APIs with sound aspects include Java 3D and APIs for telephony and speech. An implementation of any of these APIs might use an implementation of the Java Sound API internally, but is not required to do so.
เส้นทาง : เสียง
Java API เป็น API ระดับต่ำสำหรับเสียงและมีผลต่อการควบคุมอินพุตและเอาต์พุตของสื่อเสียง ทั้งเสียงและอินเตอร์เฟซดิจิตอลเครื่องดนตรี ( MIDI ) ข้อมูล Java API ให้ควบคุมเสียงชัดเจนกว่าความสามารถปกติที่จําเป็นสําหรับเสียงขาเข้า และ ขาออก ในกรอบที่ส่งเสริมความยืดและความยืดหยุ่น .
ชวาเสียง API ตอบสนองความต้องการของหลากหลายของนักพัฒนาโปรแกรม พื้นที่ใช้ :
อาจรวมถึงการสื่อสารต่างๆ เช่น การประชุมทางโทรศัพท์และส่งเนื้อหา
ผู้ใช้ระบบ เช่นเครื่องเล่นสื่อและการสตรีมเนื้อหาเพลง
โต้ตอบโปรแกรมประยุกต์เช่นเกมและเว็บไซต์ที่ใช้สร้างเนื้อหาและแก้ไขเนื้อหาแบบไดนามิก
เครื่องมือชุดเครื่องมือและสาธารณูปโภค
Java API ให้เสียงระดับต่ำสุดของการสนับสนุนเสียงบนแพลตฟอร์มจาวา . มันมีโปรแกรมที่ใช้กับจำนวนเงินที่ดีของการควบคุมการดำเนินการเสียงและมันได้ . ตัวอย่างเช่น Java API สำหรับการติดตั้งอุปกรณ์เสียงกลไกการเข้าถึงและจัดการทรัพยากรของระบบ เช่น เครื่องผสมเสียงสังเคราะห์ MIDI ,อุปกรณ์เสียงอื่น ๆหรือไฟล์ MIDI , ผู้อ่านและนักเขียน และแปลงรูปแบบเสียง ชวาเสียง API ไม่รวมบรรณาธิการเสียงที่มีความซับซ้อนหรือเครื่องมือกราฟิก แต่มันมีความสามารถที่โปรแกรมดังกล่าวสามารถสร้างขึ้น มันเน้นการควบคุมระดับต่ำเกินกว่าที่คาดไว้ โดยทั่วไปผู้ใช้
Java API รวมถึงเสียงสนับสนุนทั้งเสียงและข้อมูลดิจิทัล MIDIโมดูลเหล่านี้หลักสองของฟังก์ชันที่ให้ไว้ในแพคเกจที่แยกต่างหาก :
javax.sound.sampled –แพคเกจนี้กำหนดอินเทอร์เฟซสำหรับการจับ , การผสมและการเล่นเสียงดิจิตอล ( ตัวอย่าง ) .
javax.sound.midi –แพคเกจนี้ให้อินเตอร์เฟซสำหรับการสังเคราะห์ , MIDI sequencing และกิจกรรมการขนส่ง
แพคเกจอื่น ๆสองใบอนุญาตผู้ให้บริการ ( ตรงข้ามกับนักพัฒนาโปรแกรมเพื่อสร้างที่กำหนดเองส่วนประกอบซอฟต์แวร์ที่ขยายขีดความสามารถของการใช้เสียงของ Java API :
javax . เสียง ตัวอย่าง . SPI
javax . เสียง MIDI . SPI
หน้านี้ แนะนำ ตัวอย่าง ระบบเครื่องเสียง ระบบ MIDI , และ SPI แพคเกจ แต่ละแพคเกจแล้วจะกล่าวถึงในรายละเอียดต่อไปในกวดวิชา .
หมายเหตุ :
มีแพลตฟอร์มจาวา API ที่ยังมีเสียงที่เกี่ยวข้องกับองค์ประกอบ สื่อกรอบ Java API ( ดาวน์โหลด ) เป็นระดับ API ที่ใช้อยู่ในปัจจุบันเป็นส่วนขยายของมาตรฐาน Java แพลตฟอร์ม ดาวน์โหลดกำหนดสถาปัตยกรรม , unified messaging protocol และโปรแกรมสำหรับจับภาพและการเล่นสื่อฐานเวลา .ดาวน์โหลดให้โซลูชั่นที่ง่ายสำหรับโปรแกรมเล่นสื่อพื้นฐาน และช่วยประสานระหว่างสื่อชนิดต่างๆ เช่น เสียง และวิดีโอ บนมืออื่น ๆ โปรแกรมที่เน้นเสียงสามารถได้รับประโยชน์จากชวาเสียง API , โดยเฉพาะอย่างยิ่งถ้าพวกเขาต้องการคุณลักษณะขั้นสูงเพิ่มเติมเช่นความสามารถในการเล่นไฟล์เสียงหรือรอบคอบควบคุม MIDI โดยตรงจัดการซิน . Java APIs อื่น ๆที่มีลักษณะ 3 มิติและเสียงรวมถึง Java APIs สำหรับโทรศัพท์และสุนทรพจน์ การใช้ระบบใด ๆเหล่านี้อาจจะใช้ API Java API ที่ใช้เสียงภายในแต่ก็ไม่ต้องทำ
การแปล กรุณารอสักครู่..
