Music volume before/after media_pause/media_start

Posted By: Zelek

Music volume before/after media_pause/media_start - 10/11/08 22:10

The music volume seems to increase after being paused then resumed.

Code:
var music_handle = media_loop("music.mp3", NULL, 50);
wait(-5);
media_pause(music_handle);
media_start(music_handle);


Calling media_tune after media_start doesn't seem to make any difference.

SB Audigy Audio [C8C0]
Gamestudio Commercial 7.10

EDIT:

This seems to be an issue solely with media_loop(), not media_pause or media_start. Try looping a short mp3 (5-10 seconds) and notice that the volume increases after the first loop.
Posted By: jcl

Re: Music volume before/after media_pause/media_start - 10/16/08 15:51

I can not confirm this problem with the current engine version.

Does it happen with 7.50? Are you calling media functions or setting the audio volume somewhere else in your code?
Posted By: Zelek

Re: Music volume before/after media_pause/media_start - 10/17/08 00:25

I updated to 7.50 and this is still a problem. Here is the entire code:

Code:
#include <acknex.h>
#include <default.c>

function main() {
   level_load("TestProject.wmb");

   var music_handle = media_loop("music.mp3", NULL, 50);
   wait(-5);
   media_pause(music_handle);
   media_start(music_handle);
}


As I noted above, if you have a short sound file, you don't even have to call pause/start - the volume will increase after the first loop finishes. It doesn't matter if it's .wav or .mp3.
Posted By: Zelek

Re: Music volume before/after media_pause/media_start - 10/24/08 14:10

Can anyone else confirm this problem?
Posted By: jcl

Re: Music volume before/after media_pause/media_start - 10/30/08 12:23

Apparently not, but it may be related to the sound driver. I'll try to reproduce it in the next days with some other sound cards.

Update: I could not confirm this problem with any sound card. Maybe it's caused by some background program running on your PC? Have you tried it on a different PC?
© 2024 lite-C Forums