Details for SVN revision 2424
10-Jul-2010 (Saturday) at 02:59:34 GMT+0000 by Randy Heit
On branches: 2.6, 2D_Refactor, 3.7fixed, 3dfloors, 3dfloors2, 3dfloors3, 4.11, 4.13, 4.14, 4.14.1, 4.14.2, 4.14.3, 4.15, 4.2.1, 4.2.4, 4.3.2, 4.3.3, 4.5, 4.6, 4.7, 4.7.1, 4.8, 4.8.1, 4.8.2, 4.9, 5.0, Branch_g1.8.07, Buffer_For_All, GLEW_VERSION, GZDoom_Lite, Glew_Version_For_Real, Hardwareshader, MeansOfDeath, OnSelectFromPowerup, RenameVisualThinkers, TicRateChange, TryPickup(bool-pickup), ZCompat2, adlMIDI, appimagebuilder, appimagetest, arm64win, asmjitsection, automap, bugtesting, classic_inter_scaling, clientserver, docs-testing, dragonbook, dsda-udmf, dynopengl, edf, experimental, finale, fix_friendly_spawn, float, floatcvt, friendly_window_title, fs_revamp, g1.x, g2.2, g3.3.2, g3.3maint, g3.5maint, g4.12, g4.2, g_level_reworking, glswfb_allow_mesa_30, gzdoom-5.0, haiku-develop, hwuniforms, implicit_regvar_init, indexbuffer, isometric_test, iwad_param, legacy, level_removal_abandoned, lightlevelcontrast, lightmaps, lightmaps-new, main, maint, maint1.9, maint2.1, maint2.4, maint_3.0, maint_3.6.x, maint_4.0, maint_4.1, maint_4.3, map_loader, menu, menu_revamp, minimap, mt, new_level_refactor, newtimercode4, normalNx, noscriptexit, ortho, pbr_environment, polybackend, portal-zdoom, portals_old, pp_cleanup, pr/140, pre-vcpkg, prep-4.13, qzdoom-merge, refdocs, renderstate_abstraction, reverbedit, revert-291-menu_blur, rng-cleanup, rolling_back, savegamefix, sdl_hint, sdladapter, sections, selectiverendering, shadows, staging, startscreen, sub-dynlight-other, swnitevisdrawer, tdbots, timidity++, trunk, uniformbuffers, usdf, v2.x, virtual_2d, vkcopyqueue, vkdoom-master, voxel, vulkan, welcome, windowscale, zbots, zmaster, zmdl
- Added support for custom loop points for songs. This does not work with MP3 because of the
way MP3 obfuscates custom tags. Vorbis and FLAC are fine. (I could make it work with MP3,
but you should be using Vorbis instead.) They are:
- LOOP_START: Start time for the loop. If omitted, the song repeats from the beginning.
- LOOP_END: End time for the loop. If omitted, the song loops at the end. (If you need to specify this, why aren't you using a shorter song.) You only need to specify one of these tags to set the custom loop. Naturally, you can set them both, as well. The format for each tag is the same:
- If it contains a colon (:), it specifies by time. This may be of the form 00:00:00.00 (HH:MM:SS.ss) to specify by play. Various parts may be left off. e.g. To start the loop at 20 seconds in, you can use ":20", 0:20", "00:00:20", ":20.0", etc. Values after the decimal are fractions of a second and accurate to one millisecond.
- If you don't include a colon but just have a raw number, then it's the number of PCM samples at which to loop.
- Any characters other than digits (0-9), colons (:), or a single decimal point for the seconds portion will result in the tag being ignored.
SVN r2424 (trunk)
3 files changed, 171 insertions, 0 deletions
Modified
| src/s_advsound.cpp (Diff) | ||
| src/s_sound.h (Diff) | ||
| src/sound/fmodsound.cpp (Diff) |
