Phil Schatzmann
Phil Schatzmann
1. You would clone this library first and do the changes there. 2. Follow https://github.com/pschatzmann/arduino-audiokit/wiki/Adding-Support-for-a-new-Board 3. After it is working you can submit a pull request.
Difficult to say what the issue is w/o knowing the code: I suggest to test the following functions separately - sd drive - output - input you can use the...
The only issue that I could identify is that the __i2s master clock__ (pin) is not set up. I suggest to test with commenting out line 143 which sets result.mck_io_num...
I suggest that you try to find out if the audio_hal_ctrl_codec call is the source if the trouble... Maybe it helps to add a delay ? Or it is trying...
In audio_hal_init do not executed the check when AUDIOKIT_MUTEX_SUPPORT is 0 #if AUDIOKIT_MUTEX_SUPPORT==1 AUDIO_MEM_CHECK(TAG_HAL, audio_hal->audio_hal_lock, { KIT_LOGE("AUDIO_MEM_CHECK"); audio_free(audio_hal); return NULL; }); #endif
You really need to create a stacktrace to analyse where this is coming from. https://github.com/me-no-dev/EspExceptionDecoder You could also try to add some log statements to see what the sampling rate...
Now you need to check in your AudioKitHAL.h line 320 what could cause the nullpointer exception... I guess the code in your repository does not match what you are currently...
hmm are you sure ? I can't see what could go wrong here
It is used to define i2s_config_t fixed_mclk to set a fixed master clock rate when you use I2SStream. As far as I remember it is not relevant for the AudioKit
Yes, that's correct.