yoshisuga / MAME4iOS

Multiple Arcade Machine Emulator for iOS, iPadOS, tvOS, macOS (Catalyst)
Other
633 stars 103 forks source link

audio stuttering on Apple TV 4. #303

Open superandrew opened 3 years ago

superandrew commented 3 years ago

Hi, I tried this fantastic port with Apple TV and I am incredibly excited 😂

Unfortunately every game I try suffers audio stuttering which sometimes stop after a while playing. Is this a known issue?

ToddLa commented 3 years ago

We have not seen a stuttering problem in a while.

What romset? What build of MAME4iOS? What version of tvOS? How did you deploy? Xcode or sideload.

mrjschulte commented 3 years ago

Hi, would you happen to have any answers to these questions @superandrew ?

superandrew commented 3 years ago

Hi it happened on games like Bubble Bobble, Donkey Kong, Shinobi, and any other I tried. Apple TV 2015 with latest OS, Mame downloaded and built in xcode the same day of the issue.

After that, the following day all games disappeared from mame4ios, that's the reason I didn't had time to reinstall everything and get back to you, sorry.

ToddLa commented 3 years ago

Hmmmm this is a "old" AppleTV HD, might need to give that a look, re-copy the ROMs the tvOS helpfully removed for you to save space, and try again. I will see if I have a HD TV in my closet

ToddLa commented 3 years ago

Turns out I do have an TV gen 4, it is the same one I used when I fixed audio issues last time!

If you can @superandrew can you try to repro again.....

superandrew commented 3 years ago

@ToddLa should I update the source and deploy again? in the meantime I am waiting for a 4K so we'll see the difference. Is it normal that every time I launch the application the ROMS folder is emptied?

ToddLa commented 3 years ago

It is "not normal" but it is what tvOS does, if you are low on disk space it will remove any apps data files.

I hope you ordered the 64GB version of new TV!

If you build an entitled build, you can easily get your ROMs back with a single click from iCloud (assuming you upload them at least once.....)

superandrew commented 3 years ago

thank you @ToddLa.. this morning I built an entitled build, and tried to upload the ROMS from an iPad, but got this error: IMG_57B06AFB9BC7-1 however, regarding the audio stuttering, I can confirm it's an issue with most games, but I assume this is related to the old hardware.

ToddLa commented 3 years ago

What the hell error is that? Thanks iCloud!

ToddLa commented 3 years ago

I still plan to check out the audio issue, I want to make sure we are not messing up, I might pop up a branch for you to test.....

ToddLa commented 3 years ago

You have a full developer account? Not a shared one?

superandrew commented 3 years ago

I have a developer account, I'm an iOs developer. I'd like to help with testing.

After compiling an Ipa with and install it on the aTv I didn't see the roms disappear anymore. I know aTv reclaims some space, but why delete all the content of the ROMS folder everytime I restart? probably a bug or something related to launching the app instead of installing it.

I'll send you a video with an example of the stuttering. Have you got any chance to try bubble bubble for example on the old aTv?

ToddLa commented 3 years ago

I have been running on old TV for a while, no sound issues! But I have not specifically tried bubble bobble. I will do that now

ToddLa commented 3 years ago

I am put back the ability to choose the audio sample rate, and see if that does anything for you...

monogalactico commented 4 months ago

Hi, I have same problem with old and new Apple TV (apple 64 2019, and apple 4k 2023 )I Use last mameios 2022.5 with mame 0219... Donkey Kong , Hypersports , etc are very very noisy. Same mameios in Mac sounds perfect. How can I fix it? Apple TV version is very useful but I can't play in this way :(. THANKS!!!