You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New audio.sound_dir folder ("scriptfiles/SampAudioStream/sound", created on startup) for short sound effects such as alerts, notifications, jingles and gameplay sounds, kept apart from the music library (a startup warning is logged when it overlaps audio.music_dir).
New SA_PlayAudioStreamSoundForPlayer(playerid, sound[], posX, posY, posZ, distance, usepos) serves .mp3, .ogg and .wav files up to 5 MB as-is from memory through the new /f/<code> route (no transcoder, immediate start), plays them above every other source (SA_SOURCE_SOUND) and then resumes what the player was hearing: channels and radios continue live and interrupted transcoded personal streams resume where they were cut.
Playlist Continues After Out-of-List Tracks:
In channel playlist mode, a track started with SA_PlayChannelAudioStream (such as a live radio played over the list) now continues into the playlist when it ends, is skipped or fails, starting after the item that was playing before it (or from the first item); previously the channel stopped. LOOP_TRACK repeats the out-of-list track and LOOP_QUEUE wraps past the last item.
Large Channel Queues:
New SA_FindAudioStreamChannelQueue(channelid, item[], start_index) finds a URL in a channel queue inside the plugin and returns its index (or -1), so scripts can check or highlight queued tracks with one call instead of reading every entry.
Playlist imports allow more time for big lists (60s up to 200 items plus 10s per further 100 items, 140s at the 1000-item maximum).
Lower Prefetch Memory:
performance.max_prefetch_mb now defaults to 8 (was 16): a typical YouTube track still downloads whole, while the worst case for many simultaneous large files is halved.
Local music library files no longer load up to max_prefetch_mb into RAM; they are read from disk through a fixed buffer of at most 1 MB.
Demo Filterscript Updated to 2.2.0/2.3.0 Features (FS_SampAudioStream_Demo.pwn):
Added a Music Library menu (refresh, folders, tracks, private/global/channel playback and whole-folder import via library://), channel playlist mode (toggle, highlighted current item, play any item), a sound effect player, an on-screen stream text toggle (stream_text), a persistent/temporary step in channel creation and the SA_SOURCE_SOUND label.
Fixed the dialog range check that ignored the live radio text, global live text and queue item dialogs.
The channel queue, library folder and library track lists are paged (only the visible page is read), queued tracks are marked through SA_FindAudioStreamChannelQueue, whole-folder imports request up to 1000 items.
Compiles without warnings: the large dialog buffers are static (estimated stack use drops from about 26 KB to 10 KB, inside the default 16 KB) and <open.mp> is included directly when available, falling back to <a_samp> on legacy SA-MP toolchains.