Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/20/26 18:18
Ranger by Robert Pardo - now for Zorro
by Smallz. 06/20/26 11:23
Z12 live performance
by jcl. 06/19/26 11:21
Z9 getting Error 058
by jcl. 06/16/26 09:51
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 8,389 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Music volume before/after media_pause/media_start #231094
10/11/08 22:10
10/11/08 22:10
Joined: Feb 2002
Posts: 357
Florida
Zelek Offline OP
Senior Member
Zelek  Offline OP
Senior Member

Joined: Feb 2002
Posts: 357
Florida
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.

Last edited by Zelek; 10/12/08 00:08.
Re: Music volume before/after media_pause/media_start [Re: Zelek] #231726
10/16/08 15:51
10/16/08 15:51
Joined: Jul 2000
Posts: 28,110
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,110
Frankfurt
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?

Re: Music volume before/after media_pause/media_start [Re: jcl] #231799
10/17/08 00:25
10/17/08 00:25
Joined: Feb 2002
Posts: 357
Florida
Zelek Offline OP
Senior Member
Zelek  Offline OP
Senior Member

Joined: Feb 2002
Posts: 357
Florida
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.

Re: Music volume before/after media_pause/media_start [Re: Zelek] #232845
10/24/08 14:10
10/24/08 14:10
Joined: Feb 2002
Posts: 357
Florida
Zelek Offline OP
Senior Member
Zelek  Offline OP
Senior Member

Joined: Feb 2002
Posts: 357
Florida
Can anyone else confirm this problem?

Re: Music volume before/after media_pause/media_start [Re: Zelek] #233757
10/30/08 12:23
10/30/08 12:23
Joined: Jul 2000
Posts: 28,110
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,110
Frankfurt
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?


Moderated by  jcl, Nems, Spirit, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1