menuconfig AUDIO
    bool "Audio Support"
    depends on FS_MGMT
    select I2S
    select I2S_NRFX
    help
      Library for initializing and managing the audio subsystem.

if AUDIO
    config AUDIO_DEFAULT_VOLUME
        int "Default Audio Volume (0..255)"
        default 128
        range 0 255
        help
          Set the default audio volume level. 0 is silent, 255 is maximum volume. Default is 128 (50% volume).

    config AUDIO_SAMPLE_RATE
        int "Audio Sample Rate (Hz)"
        default 16000
        range 8000 48000
        help
          Set the audio sample rate in Hz. Common values are 8000, 16000, 44100, and 48000 Hz. Default is 16000 Hz.

    config AUDIO_WORD_WIDTH
        int "Audio Bit Depth"
        default 16
        range 8 32
        help
          Set the audio bit depth. Common values are 8, 16, 24, and 32 bits. Default is 16 bits.
    
    config AUDIO_BLOCK_COUNT
        int "Audio Block Count"
        default 4
        range 1 16
        help
          Set the number of audio blocks for buffering. More blocks can help with smoother audio but use more memory. Default is 4 blocks.

    config AUDIO_BLOCK_SIZE
        int "Audio Block Size (bytes)"
        default 1024
        range 256 8192
        help
          Set the size of each audio block in bytes. Larger blocks can reduce CPU overhead but increase latency. Default is 1024 bytes.

    config AUDIO_THREAD_PRIORITY
        int "Audio Thread Priority"
        default 5
        range 0 255
        help
          Set the thread priority for audio processing. Lower numbers indicate higher priority. Default is 5

    config AUDIO_STACK_SIZE
        int "Audio Thread Stack Size (bytes)"
        default 1200
        range 256 8192
        help
          Set the stack size for the audio processing thread in bytes. Default is 2048 bytes.

    config AUDIO_SAMPLE_FOLDER
        string "Audio Sample Folder"
        default "a"
        help
          Set the folder path where audio sample files are stored. No leading or trailing slashes. Default is "a".

    config AUDIO_MAX_PATH_LEN
        int "Maximum Audio File Path Length"
        default 16
        range 8 128
        help
          Set the maximum length for audio file paths. Default is 16 characters.

    # Logging configuration for the Audio module
    module = AUDIO
    module-str = audio
    source "subsys/logging/Kconfig.template.log_config"
endif # AUDIO