From: Speed D. <no...@so...> - 2012-09-11 03:32:48
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: somebody Type: enhancement | Status: new Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- There is currently no background soundtrack for menus and other screens.[[BR]] This would add some polish to the game. -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-09-11 04:12:09
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: somebody Type: enhancement | Status: new Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by beaglejoe): === Ideas === * Fade In/Out? * File format(s)? (may introduce dependencies) * ogg * mp3 * others * Separate volume settings for music and sound effects? * Different music for different menus / screens (ie Results)? * Split music samples into multiple files? * In-game music (Pause/non-player qualifying/etc.)? === Considerations === * License * !FreeArt License http://artlibre.org/licence/lal/en * work with plib sound * work with openal * any new dependencies affect 3rdParty package(s) === Sub Tasks === * Add item(s) to Sound Configuration Menu * Menu music (y/n) * Identify points where music should stop or start -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:1> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-09-26 16:15:21
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: somebody Type: enhancement | Status: new Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by beaglejoe): I have created a working prototype to play menu music being created by Benjamin. This adds dependencies on libvorbis, libogg, and libvorbisfile as it currently only works with ogg files. The music is played via OpenAL. This does not always cooperate with PLIB for sound effects. PLIB users will probably want to disable the music (not yet implemented). The modified torcs code is integrated directly into tgfclient. I have looked at SDL_Audio and SDL_Mixer for loading of files. As far as I can tell, they still need these libs to handle ogg. I think that SDL_Mixer looks good for the medium term. For the short term the TORCS' OpenALMusicPlayer works. I have cmake working for all this on Windows and Linux, but need testing on MinGW. Todo list: Code cleanup Add to menu system (Enable/Disable Music) Play different music at different game points (currently same song is just stopped and started) Build 3rdParty binaries for Windows with (MSVC2005)? (I have VS2010-built binaries) Nice to have: Fade in/out seperate volume control for music/sound effects At this point, I think it is important to decide on a file format(s) to use, as this will effect the effort/schedule. -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:2> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-09-26 16:35:52
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: somebody Type: enhancement | Status: new Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by beaglejoe): Notes on bulding dependencies for Windows http://www.xiph.org/downloads/release/ogg/libogg-1.3.0.zip http://www.xiph.org/downloads/release/vorbis/libvorbis-1.3.3.zip libvorbis contains libvorbisfile I used the included VS2010 solutions without any changes (they are set for multi-threaded dll) vorbis_dynamic.sln libogg_dynamic.sln After building these copy the DLLs to 3rdParty/bin copy the LIBs to 3rdParty/lib copy libvorbis-1.3.3/include/vorbis folder contents to 3rdParty/include/vorbis copy libogg-1.3.0/include/ogg folder contents to 3rdParty/include/ogg -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:3> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-10-01 01:36:05
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: somebody Type: enhancement | Status: new Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by beaglejoe): The libogg and libvorbis are not GPL. They have their own license (modified BSD). The FSF lists this as GPL-compatible. -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:4> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-10-01 07:51:17
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Changes (by beaglejoe): * owner: somebody => beaglejoe * status: new => accepted -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:5> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-10-27 13:42:45
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by pouillot): For reference, current state of Ben Piller's artwork : * http://dl.dropbox.com/u/42432189/SD_credits_0910_looped.mp3 * http://dl.dropbox.com/u/42432189/SD_main_0906_looped.mp3 -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:6> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-10-27 18:47:21
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by pouillot): Currently working on adding Ogg and Vorbis dependencies to the Windows 3rd party binary and source packages ... -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:7> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-10-28 19:32:15
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by pouillot): Just added the needed Ogg and Vorbis stuff to our 3rd party source and binary packages for Windows at SF.net : that way, whatever his building platform, any developer will be able to try Joe's work when ready (and this day will come soon :-). Also committed in r5022 & r5023 the original music player code grabbed from TORCS 1.3.3 (thanks Bernard :-) ... as a reference starting point. Note that this does not affect in any way the build at the moment, as these files are not yet listed in the CMakeLists.txt. -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:8> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-11-03 03:49:32
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by beaglejoe): New music from Ben: http://dl.dropbox.com/u/42432189/SD_credits1102.ogg http://dl.dropbox.com/u/42432189/SD_main1102.ogg http://dl.dropbox.com/u/42432189/SD_qualifications1102.ogg -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:9> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-11-07 18:49:48
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by beaglejoe): I've attached a patch (against r5040) of the work so far. To apply: * Linux * cd to the top of your source folder * patch -p0 < menu-music-5040.patch * Windows * cd to the top of your source folder * You may need to use wordpad.exe to convert the patch to Windows end- of-lines * apply the patch through TortoiseSVN The patch creates place holder files in the data/data/music folder for the three ogg files. Replace these with the real files from Ben. http://dl.dropbox.com/u/42432189/SD_credits1102.ogg http://dl.dropbox.com/u/42432189/SD_main1102.ogg http://dl.dropbox.com/u/42432189/SD_qualifications1102.ogg A new cmake option OPTION_MENU_MUSIC (OFF by default) needs to be enabled. Build as usual. Some Notes: Currently, SD_main1102.ogg is used everywhere. It does not work with PLIB sound on Linux. -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:10> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-11-07 21:30:50
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by torcs-ng): Hi beaglejoe, I just tested on Linux with 64 bits work fine. Just some remarks : 1 - better if sound files are not versioned name( SD_credits.ogg, SD_main.ogg, SD_qualification.ogg) 2 - when race launched, music player is desactivate after race start, for me it's better if musicplayer fadeout before, by exemple in raceinit or car graphic loading. This weekend I will including in sound config menu, menu for enable/disable music. But great work PS: music volume can be managed or not ? -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:11> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-11-08 01:29:00
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by beaglejoe): Replying to [comment:11 torcs-ng]: > Hi beaglejoe, > > I just tested on Linux with 64 bits work fine. > Just some remarks : > > 1 - better if sound files are not versioned name( SD_credits.ogg, SD_main.ogg, SD_qualification.ogg) Good idea. > > 2 - when race launched, music player is desactivate after race start, for me it's better if musicplayer fadeout before, by exemple in raceinit or car graphic loading. I will look into this. > > This weekend I will including in sound config menu, menu for enable/disable music. > > But great work > > PS: music volume can be managed or not ? Not yet, but planned. -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:12> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-11-08 04:58:24
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by mungewell): Cool, mostly works on Ubuntu although I'd remind people that you need to clear your cmake caches before running: $ cmake -D OPTION_OFFICIAL_ONLY:BOOL=ON -D CMAKE_BUILD_TYPE:STRING=Release -D OPTION_MENU_MUSIC:BOOL=ON . Couldn't tell whether the track changes when you enter the Credits menu. Also have a 'glitch' when using pause in a qualification stage for a human. --00:03:34.184 Trace Ready. 00:03:34.184 Info Sound restored 00:03:34.185 Info Starting race engine. 00:03:34.288 Info Endurance now in NETWORK_WAIT state 00:03:34.288 Info Endurance now in RACE state 00:03:34.288 Info Ready. 00:03:35.197 Info Set. 00:03:36.210 Info Go. 00:03:39.465 Debug translateKeySym(c=70, m=0, u=70) : 'p', id=70, ucode=70 (nk=2) 00:03:39.465 Info Sound paused 00:03:39.465 Info Stopping race engine. 00:03:40.915 Error OpenALMusicPlayer: OpenAL error was raised: 40961 00:03:42.391 Error OpenALMusicPlayer: OpenAL error was raised: 40961 00:03:43.896 Error OpenALMusicPlayer: OpenAL error was raised: 40961 00:03:43.933 Error OpenALMusicPlayer: OpenAL error was raised: 40961 00:03:45.396 Error OpenALMusicPlayer: OpenAL error was raised: 40961 00:03:46.846 Error OpenALMusicPlayer: OpenAL error was raised: 40961 00:03:46.867 Error OpenALMusicPlayer: OpenAL error was raised: 40961 00:03:48.360 Error OpenALMusicPlayer: OpenAL error was raised: 40961 00:03:49.853 Error OpenALMusicPlayer: OpenAL error was raised: 40961 00:03:49.878 Error OpenALMusicPlayer: OpenAL error was raised: 40961 -- But this is great progress. -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:13> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-11-11 15:42:19
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by pouillot): Replying to [comment:10 beaglejoe]: > I've attached a patch (against r5040) of the work so far... > ... A new cmake option OPTION_MENU_MUSIC (OFF by default) needs to be enabled. Just committed in r5042. > The patch creates place holder files in the data/data/music folder for the three ogg files. > Replace these with the real files from Ben. > http://dl.dropbox.com/u/42432189/SD_credits1102.ogg > http://dl.dropbox.com/u/42432189/SD_main1102.ogg > http://dl.dropbox.com/u/42432189/SD_qualifications1102.ogg Also added these 3 files, after renaming them respectively to credits.ogg, main.ogg and qualifications.ogg (following the suggestion of Xavier, and even more). Great job, Joe, go on :-) -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:14> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-11-12 12:34:29
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by area42): Great news! I have to rebuild my SD dev version to check it out. -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:15> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-11-14 19:28:08
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by area42): I tested today the menu music as it is implemented so far. I know this is still under development. But i'm missing volume fade out and fade in of music when it is getting off or on. I always hear the same track no music changes in racing menu or credits or qualification. Ok this is my not implemented yet :) At all a great start! -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:16> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-11-15 23:30:45
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by beaglejoe): I've attached a patch (against r5048) that should fix the Pause problem reported by mungewell. It also seems to fix an intermittent problem with incorrect sound effects in the first race w/SC cars. I had to modify snddefault to resolve a conflict over the OpenAL device/context.[[BR]] To apply: * Linux * cd to the top of your source folder * patch -p0 < menu-music-5048.patch * Windows * cd to the top of your source folder * You may need to use wordpad.exe to convert the patch to Windows end- of-lines * apply the patch through TortoiseSVN The earlier patch is no longer needed, nor do the ogg files need to be gotten from dropbox (as long as you have r5042 or later) Thanks pouillot! So far the modules affected are: * snddefault * legacymenu * tgfclient I have done (some) testing with the CMake option on and off, on Windows(7) and Linux(SolusOS 64-bit) Current status: * No volume control * Always plays main.ogg * No fade in/out * Enable/disable only available via CMake option -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:17> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-11-16 02:31:48
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by mungewell): You may have already fixed this in your latest patch, but it really doesn't like it when PLIB is selected for sound -- 0:00:18.020 Trace Wrote /home/simon/.speed-dreams-2/config/graph.xml (0x8ba57e0) 00:00:18.021 Trace Loaded /home/simon/.speed-dreams-2/config/sound.xml (0x916c490) 00:00:18.021 Info Initializing sound engine (plib) slDSP: open: No such file or directory WARNING: slScheduler: soundcard init failed. terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc -- Also, rather than using pre-defined names shouldn't the menu script contain a parameter to specific the audio track to play. When opening a new menu the fade out/in would only happen if the track was a different name to one currently playing. -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:18> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-11-16 04:44:42
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by beaglejoe): Replying to [comment:18 mungewell]: > You may have already fixed this in your latest patch, but it really doesn't like it when PLIB is selected for sound > -- > 0:00:18.020 Trace Wrote /home/simon/.speed-dreams-2/config/graph.xml (0x8ba57e0) > 00:00:18.021 Trace Loaded /home/simon/.speed-dreams-2/config/sound.xml (0x916c490) > 00:00:18.021 Info Initializing sound engine (plib) > slDSP: open: No such file or directory > WARNING: slScheduler: soundcard init failed. > terminate called after throwing an instance of 'std::bad_alloc' > what(): std::bad_alloc > -- > Oops, sorry Plib users. On my Linux box, I see the (WARNING: slScheduler: soundcard init failed.) but not the terminate. SD runs fine, but NO sound effects. I will look into this. (SD should NOT crash.) Plib sound effects work here if CMake OPTION_MENU_MUSIC is off. Can you try this on your distro (Ubuntu, if I recall)? > > Also, rather than using pre-defined names shouldn't the menu script contain a parameter to specific the audio track to play. When opening a new menu the fade out/in would only happen if the track was a different name to one currently playing. Very good idea. I planned on getting rid of the hard-coded names and getting filenames from a config file (sound.xml?) -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:19> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-11-16 09:15:23
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by pouillot): Replying to [comment:19 beaglejoe]: > Replying to [comment:18 mungewell]: > > Also, rather than using pre-defined names shouldn't the menu script contain a parameter to specific the audio track to play. When opening a new menu the fade out/in would only happen if the track was a different name to one currently playing. > Very good idea. I planned on getting rid of the hard-coded names and getting filenames from a config file (sound.xml?) I agree with Simon, if the sound track has possibly to be specific to each menu, why not (quickly thrown, may need more thinking) : * specify the .ogg file it in each menu XML descriptor (data/data/menu/*.xml), * automatically register it at menu load time in a new field of the tGfuiScreen structure (gui.h), * and take it into account at menu activation time (gui.cpp::GuiScreenActivate) ? -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:20> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-11-16 10:27:07
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by torcs-ng): I'm right with JP. Added a new parameter for push name music in menu.xml. PS: beaglejoe ... I just saw your patch, I commite this evening -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:21> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-11-18 09:45:07
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by pouillot): Replying to [comment:20 pouillot]: > I agree with Simon, if the sound track has possibly to be specific to each menu, why not (quickly thrown, may need more thinking) : ... Thinking it a bit more : > * specify the .ogg file it in each menu XML descriptor (data/data/menu/*.xml), Through a new "top level" section, like : {{{ <section name="music"> <attstr name="file" val="data/music/main.ogg"/> </section> }}} (a section, in case we need to customize something else than the music file later) > * automatically register it at menu load time in a new field of the tGfuiScreen structure (gui.h), The best place to do so seems to be guimenu.cpp::GfuiMenuCreateStaticControls (which is already called at menu load time for _every_ menu : no menu code change needed ; and we can easily consider the music player as a kind of control of the menu : not a visual one, but an audio one). > * and take it into account at menu activation time (gui.cpp::GuiScreenActivate) ? By switching here the music player to the menu-specific sample file. And if we implement a fade-out / fade-in effect at menu switching time, I'd say that gui.cpp::GuiScreenDeactivate and gui.cpp::GuiScreenActivate are probably places that count. -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:22> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-12-02 11:50:50
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by area42): BTW in our menu at Optopns > Sound we need instead of "Master volume" now two controls: "Sound volume" and "Music volume". May "Engine volume" too. -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:23> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |
From: Speed D. <no...@so...> - 2012-12-02 13:13:27
|
#755: Add menu music ------------------------------------+--------------------------------------- Reporter: beaglejoe | Owner: beaglejoe Type: enhancement | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Sound engines | Version: 2.0.0 Keywords: music soundtrack menus | ------------------------------------+--------------------------------------- Comment(by torcs-ng): Eckhard, it's provided, but for the moment in the beaglejoe's code nothing to disable music and nothing to modified master volume But I will integrate this in the menu code sound -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/755#comment:24> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |