|
|
@ -98,15 +98,17 @@ void AudioPlayer_Init(void) { |
|
|
|
// Adjust volume depending on headphone is connected and volume-adjustment is enabled
|
|
|
|
AudioPlayer_SetupVolume(); |
|
|
|
|
|
|
|
xTaskCreatePinnedToCore( |
|
|
|
AudioPlayer_Task, /* Function to implement the task */ |
|
|
|
"mp3play", /* Name of the task */ |
|
|
|
4000, /* Stack size in words */ |
|
|
|
NULL, /* Task input parameter */ |
|
|
|
2 | portPRIVILEGE_BIT, /* Priority of the task */ |
|
|
|
NULL, /* Task handle. */ |
|
|
|
1 /* Core where the task should run */ |
|
|
|
); |
|
|
|
if (System_GetOperationMode() == OPMODE_NORMAL) { // Don't start audio-task in BT-mode!
|
|
|
|
xTaskCreatePinnedToCore( |
|
|
|
AudioPlayer_Task, /* Function to implement the task */ |
|
|
|
"mp3play", /* Name of the task */ |
|
|
|
4000, /* Stack size in words */ |
|
|
|
NULL, /* Task input parameter */ |
|
|
|
2 | portPRIVILEGE_BIT, /* Priority of the task */ |
|
|
|
NULL, /* Task handle. */ |
|
|
|
1 /* Core where the task should run */ |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void AudioPlayer_Cyclic(void) { |
|
|
|