Jump to content
30960 posts in this topic

Recommended Posts

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

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.

  • Like 1
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 by chris1111
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?).

 

Screenshot 21.png

  • Thanks 1
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?).

 

Screenshot 21.png

The config is correct at least it is the same as my.

My sound card supported 16bps/44100Hz and your?

  • Thanks 1
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.

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?

Speakers.png

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 by apianti
  • Like 3

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).

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 by apianti

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

 

c3f154f57065875d67e760d0844f853f.jpg

Sent from my Mi Note 2 using Tapatalk
 

preboot.log

Edited by Andres ZeroCross
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
 
c3f154f57065875d67e760d0844f853f.jpg&key=d5a2bb75ad7ad5876bef6ca9074dfbe9e4748188b0d818c49b9434edc869641d

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 by SavageAUS
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

  

image.png

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 by apianti
 
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

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.

 

10 minutes ago, cecekpawon said:

 

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 by apianti
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 by apianti
  • Like 3
×
×
  • Create New...