Ruang penulis
SEBUAH JURNAL TENTANG TEKNOLOGI

Belajar hal baru.
Tulis. Bagikan.

Ruang untuk merangkai pengetahuan, satu baris kode setiap hari.
Temukan tutorial, ide, dan catatan dari perjalanan belajar.

1914 catatan & terus bertumbuh
PILIHAN EDITOR
Java

Memahami Java Stream: olah koleksi dengan lebih ringkas

Pelajari alur filter, map, dan collect untuk mengolah data Java dengan kode yang mudah dibaca.

D Tim Diary Coding · 1 menit baca
UNTUK RASA INGIN TAHUMU

Catatan terbaru.

SOUND API / CATATAN</>
Sound API18 Apr 2025

How do I apply gain and balance using FloatControl?

In Java, the FloatControl class is commonly used in conjunction with the javax.sound.sampled package to control certain sound properties, such as gain (volume) and balance, on lines (e.g., clips, data lines, or mixers). Here’s a quick explanation on how to apply gain and balance using FloatControl: Gain (Volume): The gain is used to adjust the […]

Wayan · 3 menit baca
SOUND API / CATATAN</>
Sound API18 Apr 2025

How do I save the microphone audio as a proper WAF file?

To save the microphone audio as a proper WAV file, you need to use the AudioSystem.write() method. WAV files contain raw PCM data combined with a header that describes important details, such as the sample rate, number of channels, etc. Java’s javax.sound.sampled package makes it easy to save the audio in this format. Example: Saving […]

Wayan · 3 menit baca
SOUND API / CATATAN</>
Sound API18 Apr 2025

How do I capture microphone input using TargetDataLine?

To capture microphone audio input using the TargetDataLine class in Java, you can use the javax.sound.sampled package. Here’s a step-by-step explanation of how you can achieve this: Steps to Capture Microphone Input Prepare the Audio Format: Define an AudioFormat object, specifying the audio sample rate, sample size, number of channels, etc. Get the TargetDataLine: Use […]

Wayan · 4 menit baca
SOUND API / CATATAN</>
Sound API17 Apr 2025

How do I check the supported audio format in Java Sound API?

In the Java Sound API, you can check if your system supports a particular audio format by using the AudioSystem.isConversionSupported and AudioSystem.getTargetEncodings methods. You can also determine if a particular AudioFormat is supported by querying the DataLine.Info object when working with audio input and output lines. Here’s a breakdown of how you can check: 1. […]

Wayan · 3 menit baca
SOUND API / CATATAN</>
Sound API17 Apr 2025

How do I control volume using FloatControl in Java?

In Java, the FloatControl class (part of the javax.sound.sampled package) is used to control a range of floating-point values that typically represent certain properties of an audio line, such as volume, balance, or sample rate. To control volume using FloatControl, you need access to an AudioLine (specifically a SourceDataLine or Clip), which supports volume control. […]

Wayan · 3 menit baca
SOUND API / CATATAN</>
Sound API17 Apr 2025

How do I load and play a .wav file using AudioSystem?

To load and play a .wav file using the AudioSystem class in Java, you can use the Clip interface from the javax.sound.sampled package. The AudioSystem class provides methods to get an audio input stream and obtain a clip to play the sound. Here’s a step-by-step guide, including example code: Steps: Import required packages from javax.sound.sampled. […]

Wayan · 3 menit baca

Pengetahuan tumbuh ketika dibagikan.

Simpan rasa ingin tahu. Selalu ada hal baru untuk dipelajari.

Jelajahi catatan ↗
Putu Adi Guna Permana
TENTANG PENULIS

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Penulis dan pendiri Diary Coding — berbagi catatan, tutorial, dan pengalaman seputar pemrograman untuk siapa pun yang ingin terus belajar.