Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Putting in an if makes sound play volume lower?

$
0
0

@Xentios wrote:

if (timeWantedtoTurn == 0)
{ float volume = 1.0f;
float pitch = -1.0f;
float pan = 0.0f;
trunk1.Play(volume, pitch, pan);
}

if i play it in an if sound volume is lower. if do not use if statement it's volume is higher.

Makine a if(true) statement OR a if if (timeWantedtoTurn >= 0) makes play volume higher one.

Posts: 8

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles