SudokuFX
Loading...
Searching...
No Matches
fr.softsf.sudokufx.common.util.AudioUtils Class Reference

Utility class providing helper methods for common audio-related operations. More...

+ Collaboration diagram for fr.softsf.sudokufx.common.util.AudioUtils:

Public Member Functions

boolean isValidAudio (File file)
 Determines if the given file has a supported audio extension.
 

Detailed Description

Utility class providing helper methods for common audio-related operations.

Includes support for:

  • Validating audio file formats

All methods throw IllegalArgumentException when passed null arguments.

This class is intended to be used statically.

Member Function Documentation

◆ isValidAudio()

boolean fr.softsf.sudokufx.common.util.AudioUtils.isValidAudio ( File file)

Determines if the given file has a supported audio extension.

Accepted audio formats: MP3, WAV, AAC, M4A, AIF, AIFF (case-insensitive).

Parameters
filethe file to check; must not be null
Returns
true if the file has a valid audio extension; false otherwise
Exceptions
IllegalArgumentExceptionif file is null

The documentation for this class was generated from the following file: