Wabere / garglk

Automatically exported from code.google.com/p/garglk
Other
0 stars 0 forks source link

Garglk: sound hangs under Linux #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. install OSS instead of Alsa.
2. the sound is working fine for other software (vlc, flash, sdl games such
as rocks'n'diamonds)
3. No sound, gargoyle hangs if sound is not turned off in garglk.ini (as
described in issue 41
http://code.google.com/p/garglk/issues/detail?id=41#c0 )

What is the expected output? What do you see instead?
Other Unix systems such as FreeBSD don't use Alsa, and OSS is more platform
independant. Gargoyle doesn't seem to work with OSS.

What version of the product are you using? On what operating system?
gargoyle-2008-11-22-sources_rc4.zip on archlinux (from 
http://aur.archlinux.org/packages.php?ID=16008 )

Please provide any additional information below.

Original issue reported on code.google.com by escli...@gmail.com on 26 Nov 2008 at 6:52

GoogleCodeExporter commented 8 years ago
Issue 40 has been merged into this issue.

Original comment by bcressey@gmail.com on 27 Nov 2008 at 11:14

GoogleCodeExporter commented 8 years ago
Issue 41 has been merged into this issue.

Original comment by bcressey@gmail.com on 27 Nov 2008 at 11:15

GoogleCodeExporter commented 8 years ago
Sound support under Linux now depends on SDL_sound, and specifically SDL_sound 
1.0.3.
 Earlier versions of SDL_sound clash with SDL_mixer when both are initialized,
causing Gargoyle to hang.

I don't think this is an OSS issue, but for now I'm grouping all Linux sound 
issues
together.  A fix is forthcoming; I plan to compile and statically link 
SDL_sound into
the Gargoyle library, to ensure that a working copy comes with the game.  (Many
distros, including Ubuntu 8.04, ship a much earlier version of SDL_sound.)

Original comment by bcressey@gmail.com on 27 Nov 2008 at 11:21

GoogleCodeExporter commented 8 years ago

Original comment by bcressey@gmail.com on 1 Dec 2008 at 4:43

GoogleCodeExporter commented 8 years ago
Patch + related files for static link SDL_sound build.

Original comment by bcressey@gmail.com on 3 Dec 2008 at 3:44

Attachments:

GoogleCodeExporter commented 8 years ago
Added fix to r108.  Checking out the latest SVN code and building it should 
work now.

Original comment by bcressey@gmail.com on 3 Dec 2008 at 5:57

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I checked out r=108, tried jam-ing it, but
it fails for seemingly SMPEG-related errors on every terp (tadsr, frotz etc...):

build/linux.release/garglk/libgarglk.so: undefined reference to `SMPEG_loop'
build/linux.release/garglk/libgarglk.so: undefined reference to `ov_clear'
build/linux.release/garglk/libgarglk.so: undefined reference to `SMPEG_status'
build/linux.release/garglk/libgarglk.so: undefined reference to `ov_info'
build/linux.release/garglk/libgarglk.so: undefined reference to 
`SMPEG_actualSpec'
build/linux.release/garglk/libgarglk.so: undefined reference to 
`SMPEG_wantedSpec'
build/linux.release/garglk/libgarglk.so: undefined reference to `SMPEG_play'
build/linux.release/garglk/libgarglk.so: undefined reference to 
`SMPEG_enablevideo'
build/linux.release/garglk/libgarglk.so: undefined reference to 
`ov_open_callbacks'
build/linux.release/garglk/libgarglk.so: undefined reference to `ov_raw_seek'
build/linux.release/garglk/libgarglk.so: undefined reference to 
`SMPEG_enableaudio'
build/linux.release/garglk/libgarglk.so: undefined reference to 
`SMPEG_new_rwops'
build/linux.release/garglk/libgarglk.so: undefined reference to `SMPEG_error'
build/linux.release/garglk/libgarglk.so: undefined reference to 
`SMPEG_playAudio'
build/linux.release/garglk/libgarglk.so: undefined reference to `ov_time_seek'
build/linux.release/garglk/libgarglk.so: undefined reference to `ov_read'
build/linux.release/garglk/libgarglk.so: undefined reference to `SMPEG_delete'
build/linux.release/garglk/libgarglk.so: undefined reference to `SMPEG_skip'
build/linux.release/garglk/libgarglk.so: undefined reference to `SMPEG_rewind'
collect2: ld returned 1 exit status

I'm running Arch Linux, sdl, sdl_sound 1.0.3 and smpeg are installed. What is 
missing?

This is even stranger, as sdl_sound is bundled with garglk (as I just found out,
after removing arch linux's sdl_sound package (v.1.0.1-7) and compiling the 
newest
version from source and it still doesn't compile). I could have found this out 
by
reading comment 3, but that would have been too easy. :)

After running 'jam' there is a binary file
'build/linux.release/SDL_sound_static/SDL_sound_static.a' that contains the 
functions
ld is complaining about (SMPEG_error, ov_read etc.). Maybe there is just an 
include
path set wrongly or something like that? Any hints are appreciated.

Original comment by unixprog@googlemail.com on 4 Dec 2008 at 6:30

GoogleCodeExporter commented 8 years ago
The latest round of commits should fix this (svn up).  I needed to link smpeg &
vorbisfile to garglk as well; this wasn't necessary on Ubuntu 8.10, for some 
reason
(newer gcc?).

If you delete your build directory (or at least build/linux.release/garglk) and 
try
again, things should link properly.

Original comment by bcressey@gmail.com on 5 Dec 2008 at 8:05

GoogleCodeExporter commented 8 years ago
Yeah, now it compiles fine and the sound issue is gone. Thanks! :)

Original comment by unixprog@googlemail.com on 5 Dec 2008 at 9:42

GoogleCodeExporter commented 8 years ago
Should be corrected in the latest RC sources.

Original comment by bcressey@gmail.com on 7 Dec 2008 at 5:41

GoogleCodeExporter commented 8 years ago
The latest RC sources (2008-12-25 rc2) work fine with audio.  The previous 
release I
tried would hang if I enabled audio.

Original comment by Alan.A.D...@gmail.com on 11 Dec 2008 at 6:39

GoogleCodeExporter commented 8 years ago
Excellent, thanks for your testing & feedback.

Original comment by bcressey@gmail.com on 11 Dec 2008 at 3:01