Andres ZeroCross Posted January 7, 2019 Share Posted January 7, 2019 Update : try with CLOVER r4840 and result still same. Only sound after i press enter in macOS Partition (macOS Chime sound), but no sound before GUI Clover. Here is the log (sound.wav and sound_night.wav are in BGM_SVG folder theme) preboot.log Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657786 Share on other sites More sharing options...
Slice Posted January 7, 2019 Share Posted January 7, 2019 2 hours ago, D-an-W said: Regarding the AFTER Clover GUI sound, I still can't get the OS to boot if BootChimeDxe.efi is present in Drivers64UEFI but I do get the sound (Just no progress bar shows up). BootChimeDxe is out of discussion here. I didn't make it and didn't recommend it. 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657788 Share on other sites More sharing options...
chris1111 Posted January 7, 2019 Share Posted January 7, 2019 (edited) 5 minutes ago, Slice said: BootChimeDxe is out of discussion here. I didn't make it and didn't recommend it. Why ? its part of Audiopkg No issue here using this drivers on drivers64 Edited January 7, 2019 by chris1111 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657790 Share on other sites More sharing options...
Badruzeus Posted January 7, 2019 Share Posted January 7, 2019 23 minutes ago, Slice said: BootChimeDxe is out of discussion here. I didn't make it and didn't recommend it. Is my *.wav audio config correct? Converting with VLC #btw I uploaded them here (credits: Zedge, etc.) Can't test them one by one, especially using VM (bcoz it sees no Audio Device detected, right?). 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657795 Share on other sites More sharing options...
Slice Posted January 7, 2019 Share Posted January 7, 2019 11 minutes ago, Badruzeus said: Is my *.wav audio config correct? Converting with VLC #btw I uploaded them here (credits: Zedge, etc.) Can't test them one by one, especially using VM (bcoz it sees no Audio Device detected, right?). The config is correct at least it is the same as my. My sound card supported 16bps/44100Hz and your? 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657797 Share on other sites More sharing options...
Andres ZeroCross Posted January 7, 2019 Share Posted January 7, 2019 1 hour ago, Andres ZeroCross said: Update : try with CLOVER r4840 and result still same. Only sound after i press enter in macOS Partition (macOS Chime sound), but no sound before GUI Clover. Here is the log (sound.wav and sound_night.wav are in BGM_SVG folder theme) preboot.log Solved,, just set NVRAM Variables to YES in CLOVER Preferences. Then go to shell and config bootchimecfg.efi. And i must delete BootChimeDxe.efi to prevent hang on apple logo. Play Async with true still very buggy,, audio stop after i press any key in CLOVER GUI. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657798 Share on other sites More sharing options...
Badruzeus Posted January 7, 2019 Share Posted January 7, 2019 23 minutes ago, Slice said: The config is correct at least it is the same as my. My sound card supported 16bps/44100Hz and your? I can hear all sample rate's Test from 44100-192000 Hz when running Windows with my Realtek ALC269-VB. Is there any diff. on system preboot compared to running system on this case? Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657803 Share on other sites More sharing options...
apianti Posted January 8, 2019 Share Posted January 8, 2019 (edited) Hey @Slice, you missed one problem in 4840. I noted here you made a mistake in loading the sound If it's daylight, then the sound is not loaded because you are only checking for error which should not have happened unless night time sound was not found. Might I suggest you change to this: if (!DayLight) { Status = StartupSoundPlay(ThemeDir, L"sound_night.wav"); } if (DayLight || EFI_ERROR(Status)) { Status = StartupSoundPlay(ThemeDir, L"sound.wav"); } EDIT: PS. Did anyone see that github now has unlimited private repositories? Is microsoft actually making something better?? Did I die like three years ago and now I'm in a weird simulation where they are keeping my brain alive as some sort of computational machine? Edited January 8, 2019 by apianti 3 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657826 Share on other sites More sharing options...
Slice Posted January 8, 2019 Share Posted January 8, 2019 @apianti I mean that if daylight OR (SOUND_NIGHT IS NOT FOUND) then play sound.wav. For me it works tested day and night. Some problems with allocated pools and opened protocols. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657830 Share on other sites More sharing options...
LockDown Posted January 8, 2019 Share Posted January 8, 2019 Is it possible to set the volume level in config.plist? Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657833 Share on other sites More sharing options...
Badruzeus Posted January 8, 2019 Share Posted January 8, 2019 So, with PlayAsync=true using r4840 I hear "\Theme Name\sound.wav" on Clover GUI loading. It' s working, thanks @Slice but just.. when GUI appears, simultaneous wav sounds crappy (or buggy as what you said). Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657834 Share on other sites More sharing options...
apianti Posted January 8, 2019 Share Posted January 8, 2019 (edited) 1 hour ago, Slice said: @apianti I mean that if daylight OR (SOUND_NIGHT IS NOT FOUND) then play sound.wav. For me it works tested day and night. Some problems with allocated pools and opened protocols. Except this line breaks your assumption that Status is an error: https://sourceforge.net/p/cloverefiboot/code/HEAD/tree/rEFIt_UEFI/Platform/Settings.c#l4198. Which is why some users had crash in CheckSyncSound() because no AudioIo was ever set because StartupSoundPlay() isn't called if a raster theme is loaded successfully unless it's night time. As for the sound breaking when playing asynchronously it is because of this: https://sourceforge.net/p/cloverefiboot/code/HEAD/tree/Drivers/AudioDxe/HdaController/HdaControllerMem.c#l446. All the events in WaitForInputEventPoll() have the same tpl of TPL_NOTIFY meaning that the callback for the audio will not interrupt any of these. Try changing to TPL_HIGH_LEVEL and see if that gives correct results. EDIT: Actually probably all driver events are TPL_NOTIFY, so probably every driver event is not interrupted like it should be to continue playing the sound. Edited January 8, 2019 by apianti Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657836 Share on other sites More sharing options...
Andres ZeroCross Posted January 8, 2019 Share Posted January 8, 2019 (edited) Now i test it again, use Clover r4840. 1. Delete BootChimeDxe.efi di Drivers64Uefi 2. Just use AudioDxe.efi in Drivers64UEFI 4. Set audio device from shell (There is sound when command applied) 5. Put sound wav and sound_night.wav in BGM_SVG folder There is no sound before GUI CLOVER or in CLOVER (PlayAsync=False). There is log "not found AudioIo" in preboot log. Try reset Nvram (F11 in Gui clover), set from shell but no change Thanks Sent from my Mi Note 2 using Tapatalk preboot.log Edited January 8, 2019 by Andres ZeroCross Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657837 Share on other sites More sharing options...
SavageAUS Posted January 8, 2019 Share Posted January 8, 2019 (edited) 15 minutes ago, Andres ZeroCross said: Now i test it again, use Clover r4840. 1. Delete BootChimeDxe.efi di Drivers64Uefi 2. Just use AudioDxe.efi in Drivers64UEFI 4. Set audio device from shell (There is sound when command applied) 5. Put sound wav and sound_night.wav in BGM_SVG folder There is no sound before GUI CLOVER or in CLOVER (PlayAsync=False). There is log "not found AudioIo" in preboot log. Try reset Nvram (F11 in Gui clover), set from shell but no change Thanks Sent from my Mi Note 2 using Tapatalk preboot.log May sound silly but you are using the theme that you put the sound files on yeah? Sent fr Edited January 8, 2019 by SavageAUS Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657840 Share on other sites More sharing options...
Andres ZeroCross Posted January 8, 2019 Share Posted January 8, 2019 3 minutes ago, SavageAUS said: May sound silly but you are using the theme that you put the sound files on yeah? Sent from my iPhone using Tapatalk May sound silly but you are using the theme that you put the sound files on yeah? Sent from my iPhone using Tapatalk Yeah,, Theme is loaded but sound = no Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657841 Share on other sites More sharing options...
apianti Posted January 8, 2019 Share Posted January 8, 2019 (edited) 43 minutes ago, Andres ZeroCross said: Now i test it again, use Clover r4840. 1. Delete BootChimeDxe.efi di Drivers64Uefi 2. Just use AudioDxe.efi in Drivers64UEFI 4. Set audio device from shell (There is sound when command applied) 5. Put sound wav and sound_night.wav in BGM_SVG folder There is no sound before GUI CLOVER or in CLOVER (PlayAsync=False). There is log "not found AudioIo" in preboot log. Try reset Nvram (F11 in Gui clover), set from shell but no change Thanks Sent from my Mi Note 2 using Tapatalk This shows that there is just no audio io protocol installed on any of the devices, did you check to make sure you have nvram variables after configuring and restart? EDIT: Nevermind, it wouldn't have gotten that far if they didn't exist. There should be a line that prints out the device path of the selected device, I bet it is being converted incorrectly so it doesn't match the one clover is using exactly. EDIT2: Please run this command on your EFI partition and upload the file it generates: dmpstore -all > nvram.txt Edited January 8, 2019 by apianti Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657842 Share on other sites More sharing options...
Andres ZeroCross Posted January 8, 2019 Share Posted January 8, 2019 This shows that there is just no audio io protocol installed on any of the devices, did you check to make sure you have nvram variables after configuring and restart? EDIT: Nevermind, it wouldn't have gotten that far if they didn't exist. There should be a line that prints out the device path of the selected device, I bet it is being converted incorrectly so it doesn't match the one clover is using exactly.Sorry, i am not sure how to check it?Sent from my Mi Note 2 using Tapatalk Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657844 Share on other sites More sharing options...
apianti Posted January 8, 2019 Share Posted January 8, 2019 (edited) Please run this command on your EFI partition and upload the file it generates: dmpstore -all > nvram.txt Edited January 8, 2019 by apianti Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657845 Share on other sites More sharing options...
Andres ZeroCross Posted January 8, 2019 Share Posted January 8, 2019 3 minutes ago, apianti said: Please run this command on your EFI partition and upload the file it generates: dmpstore > nvram.txt This,, Thanks before nvram.txt Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657846 Share on other sites More sharing options...
apianti Posted January 8, 2019 Share Posted January 8, 2019 (edited) Sorry forgot you need to specify -all or it doesn't dump anything but globals. dmpstore -all > nvram.txt Edited January 8, 2019 by apianti Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657847 Share on other sites More sharing options...
LockDown Posted January 8, 2019 Share Posted January 8, 2019 23 minutes ago, apianti said: This shows that there is just no audio io protocol installed on any of the devices, did you check to make sure you have nvram variables after configuring and restart? EDIT: Nevermind, it wouldn't have gotten that far if they didn't exist. There should be a line that prints out the device path of the selected device, I bet it is being converted incorrectly so it doesn't match the one clover is using exactly. If i use all the files from here, i have to rename sound.wav to sound_night.wav else no sound. but if i make my own sound.wav/sound_night.wav, i got no sound. So maybe @apianti's EDIT: above make sense. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657848 Share on other sites More sharing options...
cecekpawon Posted January 8, 2019 Share Posted January 8, 2019 @Slice https://github.com/Goldfish64/AudioPkg/commit/f94de2cc05625e084e1a695f98fb66d1f6a26e5f Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657849 Share on other sites More sharing options...
apianti Posted January 8, 2019 Share Posted January 8, 2019 (edited) 10 minutes ago, cecekpawon said: @Slice https://github.com/Goldfish64/AudioPkg/commit/f94de2cc05625e084e1a695f98fb66d1f6a26e5f Yeah, that's why I wanted to see the variable value. I imagine he is still using the older version though, which could also have an issue with matching the string. 10 minutes ago, ellaosx said: If i use all the files from here, i have to rename sound.wav to sound_night.wav else no sound. but if i make my own sound.wav/sound_night.wav, i got no sound. So maybe @apianti's EDIT: above make sense. These are unrelated problems. For the sound.wav to sound_night.wav, yes that is problem for raster theme as I posted before. For your own sounds, see here: Edited January 8, 2019 by apianti Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657850 Share on other sites More sharing options...
cecekpawon Posted January 8, 2019 Share Posted January 8, 2019 @apianti BootChimeCfg may caused another problems in the future if you guys not also importing it into Clover, just guessing, since AudioPkg has rapid development and could be hard to resync from time to time _/|\_ 4 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657854 Share on other sites More sharing options...
apianti Posted January 8, 2019 Share Posted January 8, 2019 (edited) 1 hour ago, cecekpawon said: @apianti BootChimeCfg may caused another problems in the future if you guys not also importing it into Clover, just guessing, since AudioPkg has rapid development and could be hard to resync from time to time _/|\_ I agree, it should have been external dependency or entire project imported. EDIT: Windows build is sooooo f u c k i n g broken. I just give up trying to maintain it, it's constantly messed up because no one seems to care about data types. And cbuild.bat is borked from slices changes.... Edited January 8, 2019 by apianti 3 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/732/#findComment-2657858 Share on other sites More sharing options...
Recommended Posts