Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Apr 2020 09:05:47 +0000 (UTC)
From:      Rodrigo Osorio <rodrigo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r532092 - in head/emulators/emu64: . files
Message-ID:  <202004190905.03J95lQI002343@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rodrigo
Date: Sun Apr 19 09:05:47 2020
New Revision: 532092
URL: https://svnweb.freebsd.org/changeset/ports/532092

Log:
  emulators/emu64: extend patch to fix an issue with OSS
  
  This update is require to unbreak the port under FreeBSD.
  The issue was reported to upstream and the fix will be available in future
  releases.
  
  Background: In the upstream issue, it was revealed that the whole C64 emulation
  depends on the audio stream (for best sync) and initializing the audio stream
  failed when the SDL backend was OSS, because it needs a fragment size that is a
  power of two. The attached patch is the minimal change to 5.0.18 from the
  upstream commit that solved the problem.
  
  PR:		245395
  Submitted by:	Ingo <hylaios@online.de>
  Approved by:	Felix Palmen <felix@palmen-it.de> (maintainer)
  MFH:		2020Q2

Modified:
  head/emulators/emu64/Makefile
  head/emulators/emu64/files/patch-src_c64__class.cpp

Modified: head/emulators/emu64/Makefile
==============================================================================
--- head/emulators/emu64/Makefile	Sun Apr 19 09:01:41 2020	(r532091)
+++ head/emulators/emu64/Makefile	Sun Apr 19 09:05:47 2020	(r532092)
@@ -3,6 +3,7 @@
 
 PORTNAME=	emu64
 PORTVERSION=	5.0.18
+PORTREVISION=	1
 CATEGORIES=	emulators
 
 MAINTAINER=	felix@palmen-it.de

Modified: head/emulators/emu64/files/patch-src_c64__class.cpp
==============================================================================
--- head/emulators/emu64/files/patch-src_c64__class.cpp	Sun Apr 19 09:01:41 2020	(r532091)
+++ head/emulators/emu64/files/patch-src_c64__class.cpp	Sun Apr 19 09:05:47 2020	(r532092)
@@ -1,5 +1,17 @@
---- src/c64_class.cpp.orig	2020-04-03 11:33:28 UTC
+--- src/c64_class.cpp.orig	2020-04-11 10:05:13 UTC
 +++ src/c64_class.cpp
+@@ -27,9 +27,9 @@ int SDLThreadWarp(void *userdat);
+ #define C64Takt 985248  // 50,124542Hz (Original C64 PAL)
+ 
+ #ifdef _WIN32
+-    #define AudioPufferSize (882)    // 882 bei 44.100 Khz
++    #define AudioPufferSize (1024)    // 882 bei 44.100 Khz
+ #else
+-    #define AudioPufferSize (882)    // 882 bei 44.100 Khz
++    #define AudioPufferSize (1024)    // 882 bei 44.100 Khz
+ #endif
+ 
+ #define RecPollingWaitStart 20
 @@ -1757,7 +1757,7 @@ void C64Class::SetFullscreenAspectRatio(bool enable)
  void C64Class::AnalyzeSDLEvent(SDL_Event *event)
  {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004190905.03J95lQI002343>