Update sound to work with Fruit Jam Rev D
Some checks failed
Build mcume / bins (push) Has been cancelled

tested with speaker & headphones using the program from
https://www.c64-wiki.com/wiki/SID#Programming_in_BASIC
which plays a series of descending tones with different random settings
(some of them sound crunchy)
This commit is contained in:
Jeff Epler 2025-08-05 10:03:29 -05:00
parent b3c43224b8
commit 1c0fd85b42
2 changed files with 2 additions and 3 deletions

View file

@ -436,7 +436,7 @@ pico_generate_pio_header(${TARGET} ${CMAKE_CURRENT_LIST_DIR}/psram/psram_spi.pio
add_subdirectory(pico-extras/src/rp2_common/pico_audio_i2s) add_subdirectory(pico-extras/src/rp2_common/pico_audio_i2s)
add_subdirectory(pico-extras/src/common/pico_audio) add_subdirectory(pico-extras/src/common/pico_audio)
add_subdirectory(pico-extras/src/common/pico_util_buffer) add_subdirectory(pico-extras/src/common/pico_util_buffer)
add_compile_definitions(PICO_AUDIO_I2S_PIO=1 PICO_AUDIO_I2S_DMA_IRQ=1 PICO_AUDIO_I2S_DATA_PIN=24 PICO_AUDIO_I2S_CLOCK_PIN_BASE=25 PICO_AUDIO_I2S_MONO_INPUT=1 PICO_AUDIO_I2S_SWAP_CLOCK=1) add_compile_definitions(PICO_AUDIO_I2S_PIO=1 PICO_AUDIO_I2S_DMA_IRQ=1 PICO_AUDIO_I2S_DATA_PIN=24 PICO_AUDIO_I2S_CLOCK_PIN_BASE=26 PICO_AUDIO_I2S_MONO_INPUT=1)
add_compile_definitions(PICO_DEFAULT_UART=0 PICO_DEFAULT_UART_TX_PIN=44 PICO_DEFAULT_UART_RX_PIN=45) add_compile_definitions(PICO_DEFAULT_UART=0 PICO_DEFAULT_UART_TX_PIN=44 PICO_DEFAULT_UART_RX_PIN=45)
set(EXTRA_AUDIO_LIB pico_util_buffer pico_audio pico_audio_i2s hardware_i2c) set(EXTRA_AUDIO_LIB pico_util_buffer pico_audio pico_audio_i2s hardware_i2c)
@ -460,7 +460,7 @@ target_compile_definitions(${TARGET} PRIVATE
target_compile_definitions(${TARGET} PRIVATE PICO_CLOCK_AJDUST_PERI_CLOCK_WITH_SYS_CLOCK=1) target_compile_definitions(${TARGET} PRIVATE PICO_CLOCK_AJDUST_PERI_CLOCK_WITH_SYS_CLOCK=1)
#target_compile_definitions(${TARGET} PRIVATE CFG_TUSB_DEBUG=2) #target_compile_definitions(${TARGET} PRIVATE CFG_TUSB_DEBUG=2)
#target_compile_options(${TARGET} PUBLIC -O3) target_compile_options(${TARGET} PUBLIC -O3)
#target_compile_options(${TARGET} PUBLIC -Wall -Wextra -Wno-unused-function -Wno-unused-parameter) #target_compile_options(${TARGET} PUBLIC -Wall -Wextra -Wno-unused-function -Wno-unused-parameter)
IF (NOT DEFINED N_SD_CARDS) IF (NOT DEFINED N_SD_CARDS)
SET(N_SD_CARDS 1) SET(N_SD_CARDS 1)

View file

@ -1305,7 +1305,6 @@ const struct audio_i2s_config config =
.clock_pin_base = PICO_AUDIO_I2S_CLOCK_PIN_BASE, .clock_pin_base = PICO_AUDIO_I2S_CLOCK_PIN_BASE,
.dma_channel = AUD_DMA_CHANNEL, .dma_channel = AUD_DMA_CHANNEL,
.pio_sm = 0, .pio_sm = 0,
.clock_pins_swapped = true,
}; };
static struct audio_buffer_format producer_format = { static struct audio_buffer_format producer_format = {