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

Choppy audio on gens-qt4 (Windows 7) #58

Open
wyrex opened this issue Mar 30, 2016 · 1 comment
Open

Choppy audio on gens-qt4 (Windows 7) #58

wyrex opened this issue Mar 30, 2016 · 1 comment
Labels

Comments

@wyrex
Copy link

wyrex commented Mar 30, 2016

Hi. I tried to build gens and got it work with MSVC 2010 and NMake (other msvc toolsets fail and can't compile in visual studio because starscream fails). It seems to work otherwise well but sounds lag badly in Qt GUI, in SDL it works normally. It might be just my version, or should this happen with a1b633b ?

D:\gens>mkdir build && cd build
D:\gens\build>E:\VisualStudio2010\VC\vcvarsall.bat

D:\gens\build>cmake -G "NMake Makefiles" -DSDL2_LIBRARY=E:\SDL2\lib\x86\SDL2.lib
 -DSDL2_INCLUDE_DIR=E:\SDL2\include -DENABLE_GENS_QT4=1 -DCMAKE_BUILD_TYPE=Release
 -DPORTAUDIO_INCLUDE_DIR=..\extlib\portaudio\include -DPORTAUDIO_LIBRARY=..\extlib\
 portaudio\lib\portaudio_x86.lib ..
portaudio v19
(rest from about window)
Internal copy of zlib-1.2.8
Internal copy of MiniZip 1.1.
Internal copy of the LZMA SDK 9.20.
Internal copy of GLEW 1.13.0.

Compiled using Qt 4.8.6.
Using Qt 4.8.6.
CPU flags: (none)
Timing method: QueryPerformanceCounter()

Save directory:
C:\Users\me\AppData\Roaming\gens-gs-ii\
System ANSI code page: 932 (ANSI/OEM - Japanese Shift-JIS)
System OEM code page: 932 (ANSI/OEM - Japanese Shift-JIS)
Using Unicode strings for Win32 API.

OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: AMD Radeon R9 200 Series
OpenGL version string: 4.5.13431 Compatibility Profile Context 16.150.0.0
GLSL version string: 4.50

GLEW version: 1.13.0
Using GL extensions:
• GL_EXT_bgra
• GL_EXT_packed_pixels
• GL_ARB_fragment_program

build gives some of these in SoundMgr.cpp

warning C4744: 'static int * LibGens::SoundMgr::ms_SegBufL' has different type in 'D:\gens\src\libgens\sound\SoundMgr.cpp' and 'D:\gens\src\libgens\sound\SoundMgr_write.cpp': '__declspec(align(16)) array (3840 bytes)' and 'array (3840 bytes)'
warning C4742: 'static int * LibGens::SoundMgr::ms_SegBufR' has different alignment in 'D:\gens\src\libgens\EmuContext\EmuMD.cpp' and 'D:\gens\src\libgens\sound\SoundMgr.cpp': 4 and 16
@GerbilSoft
Copy link
Owner

This is a known issue. PortAudio is apparently rather awful, and my sound code in the Qt build is a mess.

I mostly started the SDL build to get video/audio sync working; sometime after the initial tech preview (which should be soon, hopefully...), I'll be backporting the improved code to the Qt4 frontend.

Not sure about the SoundMgr issues; I'll take a look at that later.

@GerbilSoft GerbilSoft added the bug label Mar 30, 2016
DankRank added a commit to DankRank/gens-gs-ii that referenced this issue Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants