Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (7th_zorro), 1,390 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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 | chip programmers | 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