RETROBAT Official Board
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Background music doesn't play

4 posters

Go down

Background music doesn't play Empty Background music doesn't play

Post by lopapa 20/07/20, 09:43 am

Hello,

I have detected the following behavior:
If we change the render to Vulkan, load a rom and close it, when we return to EmulationStation the background music does not play.
It does correctly with opengl.

Here is the place to report the behaviors that we are detecting or better add them in the github?

Greetings,
lopapa
lopapa

Messages : 25
Date d'inscription : 2020-06-09

Back to top Go down

Background music doesn't play Empty Re: Background music doesn't play

Post by Lorenzolamas 20/07/20, 07:32 pm

Hello, give me more details, with which cores?
Lorenzolamas
Lorenzolamas
Admin

Messages : 2641
Date d'inscription : 2019-07-28

Back to top Go down

Background music doesn't play Empty Re: Background music doesn't play

Post by lopapa 20/07/20, 11:02 pm

I'm think is with all cores.

But I tried with:
Flycast
Beetle PSX HW
snes9x
mgba
nestopia
gambatte
genesis plus gx
mupen64 plus next (v2.1 with vulkan support)
parellel
fbneo
neocd

For example, if I launch a snes9x rom with the gl core render, when I close the rom and return to emulationstation the background music persists. If I do the same test with the vulkan render, when I return to emulationstation the music doesn't play.

I use mp3 with cbr coding at 128kbs.

Regards,
lopapa
lopapa

Messages : 25
Date d'inscription : 2020-06-09

Lorenzolamas likes this post

Back to top Go down

Background music doesn't play Empty Re: Background music doesn't play

Post by Lorenzolamas 20/07/20, 11:18 pm

Thanks for your feedback... very strange, we are several retrobat users to have tested with the parameters that you give us, and we do not meet this problem. scratch
Lorenzolamas
Lorenzolamas
Admin

Messages : 2641
Date d'inscription : 2019-07-28

Back to top Go down

Background music doesn't play Empty Re: Background music doesn't play

Post by f.caruso 20/07/20, 11:23 pm

There's absolutely no reason Vulkan ( which is related to video ) corrupts the bg music.
What's in the es_log.txt file, when U come back from a game ? ( see "AudioManager" lines )

Anyway, I don't know what we can do. We don't reproduce it. Maybe it's simply related to your audio drivers. Try upgrade them.


Background music doesn't play Admin4
f.caruso
f.caruso
Admin

Messages : 43
Date d'inscription : 2020-05-09

Back to top Go down

Background music doesn't play Empty Re: Background music doesn't play

Post by lopapa 21/07/20, 10:11 pm

f.caruso wrote:There's absolutely no reason Vulkan ( which is related to video ) corrupts the bg music.
What's in the es_log.txt file, when U come back from a game ? ( see "AudioManager" lines )

Anyway, I don't know what we can do. We don't reproduce it. Maybe it's simply related to your audio drivers. Try upgrade them.

I deleted the log file before I ran the tests. I started emulationstation, with music. When I started a rom and closed it, I came back to ES without music.

I've attached the log.

https://wetransfer.com/downloads/df0e04e7e618c8fb8d8450ec05f2e99d20200721200423/ccf141b311760f0264f0fd7455d54d1520200721200437/d5bb6b

I'm beginning to suspect that the problem is the platform and drivers used. I am currently on a NUC BOXNUC8I3BEH2 (i3-89109u with intel iris 655) and another NUC NUC7CJYH2 (celeron J4005 with UHD 600). If I launch retroarch directly with vulkan, without going through retrobat.exe, the same thing happens to me, I have no sound in the roms. This does not happen to me with an MSI laptop with NVIDIA 1070 (running the same retrobat installation). I'll continue to investigate, but with the information I have on the table, aim for drivers.

If I find something I will tell you.

Greetings!

lopapa
lopapa

Messages : 25
Date d'inscription : 2020-06-09

Back to top Go down

Background music doesn't play Empty Re: Background music doesn't play

Post by f.caruso 22/07/20, 12:07 am

Log does not help. It just shows that you launched ES but you leaved immediately without even launching a game.


Background music doesn't play Admin4
f.caruso
f.caruso
Admin

Messages : 43
Date d'inscription : 2020-05-09

Back to top Go down

Background music doesn't play Empty Re: Background music doesn't play

Post by lopapa 22/07/20, 12:03 pm

f.caruso wrote:Log does not help. It just shows that you launched ES but you leaved immediately without even launching a game.

I just did another test and the log shows something interesting, I attach the interesting lines:

2020-07-22 11:49:11 WARNING requested mismatched theme type for [Tiles.gridtile] - expected "ninepatch", got "text"
2020-07-22 11:49:11 WARNING requested mismatched theme type for [Tiles.gridtile:selected] - expected "ninepatch", got "text"
2020-07-22 11:49:18 INFO req sound [Tiles.launch]
2020-07-22 11:49:18 INFO   (missing)
2020-07-22 11:49:19 INFO Attempting to launch game...
2020-07-22 11:49:19 INFO SDL AUDIO Deinitialized
2020-07-22 11:49:19 INFO Configure emulators command : -p1index 0 -p1guid 030000000d0f00008400000000016800 -p1name "HORI CO.,LTD. Fighting Commander" -p1nbbuttons 16 -p1nbhats 0 -p1nbaxes 6
2020-07-22 11:49:19 INFO D:/OneDrive/Retrogaming/RetroBat/emulationstation\emulatorLauncher.exe -p1index 0 -p1guid 030000000d0f00008400000000016800 -p1name "HORI CO.,LTD. Fighting Commander" -p1nbbuttons 16 -p1nbhats 0 -p1nbaxes 6  -system fba -emulator libretro -core fbneo -rom "D:\OneDrive\Retrogaming\RetroBat\roms\fbneo\1944.zip"
2020-07-22 11:51:13 INFO Window::init
2020-07-22 11:51:13 INFO Added known joystick HORI CO.,LTD. Fighting Commander (instance ID: 1, device index: 0)
2020-07-22 11:51:13 ERROR VolumeControl::init() - Failed to get default audio endpoint!
2020-07-22 11:51:13 ERROR MUSIC Error - Unable to open SDLMixer audio: WASAPI can't find requested audio endpoint: No se ha encontrado el elemento.




2020-07-22 11:51:13 WARNING requested mismatched theme type for [Tiles.gridtile] - expected "video", got "text"
2020-07-22 11:51:13 WARNING requested mismatched theme type for [Tiles.gridtile] - expected "ninepatch", got "text"


I've tested with WASAPi exclusive mode on and off (with a windows restart on every change), with the same results.

I have also installed the vulkan runtimes, without changes. ( https://vulkan.lunarg.com/sdk/home )
lopapa
lopapa

Messages : 25
Date d'inscription : 2020-06-09

Back to top Go down

Background music doesn't play Empty Re: Background music doesn't play

Post by f.caruso 22/07/20, 12:46 pm

I really don't see how we can help. It really looks like it's a driver problem with WASAPI once it is used by retroarch it's not available anymore to the other apps, it acts just like the wasapi audio device disappeared.
Try another driver... Or avoid Vulkan... Or avoid playing music ;-) Very Happy


Background music doesn't play Admin4
f.caruso
f.caruso
Admin

Messages : 43
Date d'inscription : 2020-05-09

Back to top Go down

Background music doesn't play Empty Re: Background music doesn't play

Post by f.caruso 22/07/20, 12:48 pm

Or maybe try to change retroarch audio driver, see if that changes something.


Background music doesn't play Admin4
f.caruso
f.caruso
Admin

Messages : 43
Date d'inscription : 2020-05-09

Back to top Go down

Background music doesn't play Empty Re: Background music doesn't play

Post by lopapa 22/07/20, 01:12 pm

f.caruso wrote:I really don't see how we can help. It really looks like it's a driver problem with WASAPI once it is used by retroarch it's not available anymore to the other apps, it acts just like the wasapi audio device disappeared.
Try another driver... Or avoid Vulkan... Or avoid playing music ;-) Very Happy


I tried all the retroarch audio engines, and with the vulkan graphic rendering the only audio engine that works is dsound. With the other audio engines there is no sound.

The use of vulkan is to take advantage of the swap chain at 2 instead of 3 and the hard gpu for free. That is, to reduce latency, especially on cores where run_ahead is not possible. (hardware accelerated cores)

It's not really a serious problem, with glcore or directx12 rendering everything works very well, but with more inputlag. I think it can survive. And I remember, it happens to me with integrated intel graphics, with dedicated graphics cards I haven't experienced it.

We will keep on investigating, if I find the solution I will comment on the forums Smile
lopapa
lopapa

Messages : 25
Date d'inscription : 2020-06-09

Back to top Go down

Background music doesn't play Empty Re: Background music doesn't play

Post by sakurayz 11/11/20, 06:11 pm

Retroarch d3d11 or d3d12 video driver and wasapi or dsound audio driver can work fine on Windows.  
I didn't find emulatorstation's sound card driver configuration in retrobat
Retrobat 3.1 should be the sdl driver used
sakurayz
sakurayz

Messages : 3
Date d'inscription : 2020-11-11

Back to top Go down

Background music doesn't play Empty Re: Background music doesn't play

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum