Search found 8 matches
- Mon Apr 22, 2024 7:04 am
- Forum: Ren'Py Questions and Announcements
- Topic: set_queue_empty_callback behavior
- Replies: 6
- Views: 301
Re: set_queue_empty_callback behavior
YOu don't set any fadeout on any tracks aside from the first one. Initially, I anticipated finding a 'fadeout' parameter within renpy.music.queue. However, upon reviewing the documentation, I discovered that such a parameter was not present. https://www.renpy.org/doc/html/audio.html#renpy.music.que...
- Fri Apr 19, 2024 9:50 am
- Forum: Ren'Py Questions and Announcements
- Topic: set_queue_empty_callback behavior
- Replies: 6
- Views: 301
Re: set_queue_empty_callback behavior
YOu almost got it, but instead of playing sound in callback, queue it to play right after current sound instead. Thanks for your answer. Accordingly, my new approach is pasted below. Now music fades in, new music is queued, but the music never fades out (it plays for the configured time and then th...
- Tue Apr 16, 2024 1:42 am
- Forum: Ren'Py Questions and Announcements
- Topic: set_queue_empty_callback behavior
- Replies: 6
- Views: 301
Re: set_queue_empty_callback behavior
In your first example you immideately start playing a single track (with fadein) so queue becomes empty instantly and empty queue callback is called again. In your second example currently playing track is set to stop (with fadeout) and a new track is placed in queue. When fadeout finishes, new tra...
- Mon Apr 15, 2024 11:24 am
- Forum: Ren'Py Questions and Announcements
- Topic: set_queue_empty_callback behavior
- Replies: 6
- Views: 301
set_queue_empty_callback behavior
Hello, with the code below I'm hearing random music abruptly starting and stopping repeatedly (note fadein=10 ). init python: renpy.music.register_channel("music1", mixer="music", loop=False, stop_on_mute=True, tight=True, file_prefix='', file_suffix='', buffer_queue=True) sounds...
- Wed Apr 10, 2024 11:09 am
- Forum: Ren'Py Questions and Announcements
- Topic: Endless Random Background Music with Seamless Cross-Fade
- Replies: 3
- Views: 182
Re: Endless Random Background Music with Seamless Cross-Fade
The code below does not stutter. init python: sounds = ["audio_split_p48/part{}.wav".format(i) for i in range(1, 48)] init python: def s_callback(): renpy.sound.queue(renpy.random.choice(sounds)) renpy.sound.set_queue_empty_callback(s_callback) label start: "Just sit here and listen t...
- Wed Apr 10, 2024 10:40 am
- Forum: Ren'Py Questions and Announcements
- Topic: Endless Random Background Music with Seamless Cross-Fade
- Replies: 3
- Views: 182
Re: Endless Random Background Music with Seamless Cross-Fade
I attach a recording of the audio stuttering for reference. The audio stuttering becomes more noticeable, especially during the third sound, the explosion.
- Wed Apr 10, 2024 10:35 am
- Forum: Ren'Py Questions and Announcements
- Topic: Endless Random Background Music with Seamless Cross-Fade
- Replies: 3
- Views: 182
Re: Endless Random Background Music with Seamless Cross-Fade
I stumbled upon a code snippet for random sound playback in Ren'Py in https://lemmasoft.renai.us/forums/viewtopic.php?p=453546#p453546 . However, I've encountered an unexpected hiccup: audio stuttering, particularly noticeable when dealing with larger sound files. As it stands, due to the severe aud...
- Tue Apr 09, 2024 8:37 am
- Forum: Ren'Py Questions and Announcements
- Topic: Endless Random Background Music with Seamless Cross-Fade
- Replies: 3
- Views: 182
Endless Random Background Music with Seamless Cross-Fade
Could someone please assist me with setting up background music for my Ren'Py game? In my game, I require background music that transitions smoothly between tracks. The music setup entails playing a song and seamlessly transitioning to the next song (cross-fade) before the current one ends. The next...