Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with commit 6feddfadb8adc233dbe77c0de531c9baf016c090 #747

Open
amergin6699 opened this issue Jun 23, 2023 · 0 comments
Open

Bug with commit 6feddfadb8adc233dbe77c0de531c9baf016c090 #747

amergin6699 opened this issue Jun 23, 2023 · 0 comments

Comments

@amergin6699
Copy link

Hi Mickelson,

Since this commit 6feddfa
, playing a sound in the ToNewlist transition hang AM in what appears to be an infinite loop.

this only happens after a game has been launched and you want to return to displaymenu or launch game again.

Sometime the loop stay 20-30 secs, sometime it crash AM.

This happen only when you have a filter with PlayedCount in your attract.cfg

Tested on Win7 and Win10

here is a simple test you can do to see the problem

Launch a game, exit and try to launch the game again or return to display menu, it will hang

disable TrackUsage and this not happen.

attract.cfg

display	Test
	layout               test
	romlist              Atari 2600
	in_cycle             yes
	in_menu              yes
	filter               All
	filter               Favourites
		rule                 Favourite equals 1
	filter               "Most Played Games"
		sort_by              PlayedCount
		reverse_order        true
		rule                 PlayedCount not_contains 0


layout

local Sound = fe.add_sound("test.mp3" );

fe.add_transition_callback( "transition" );

function transition( ttype, var, ttime )
{
    switch ( ttype )
    {
        case Transition.ToNewList:
           Sound.playing = true;
        break;
    }
}

Thank you for your work

@amergin6699 amergin6699 changed the title Bug with commit https://github.com/mickelson/attract/commit/6feddfadb8adc233dbe77c0de531c9baf016c090 Bug with commit 6feddfadb8adc233dbe77c0de531c9baf016c090 Jun 23, 2023
pcca-matrix added a commit to pcca-matrix/PCCA-Layout that referenced this issue Mar 8, 2024
fix bug related to AM : mickelson/attract#747.
implement wheels animation with sounds for smoother transitions.
replace global fade function.
add slight delay for loading special artworks.
small fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant