0
0

How can I chage the volume of a wma , while its playing .

I’ve tried FSOUND_SetVolume and FSOUND_SetVolumeAbsolute , it works on mp3 but does nothing to wma files

Thank you

  • You must to post comments
0
0

FSOUND_SetVolume is the correct function and it works for WMAs, what is your code ?

<font size=-1>[ This Message was edited by: KarLKoX on 2001-10-24 21:24 ]</font>

  • You must to post comments
0
0

Initialize FMOD with this code

FSOUND_SetOutput, FSOUND_OUTPUT_DSOUND
FSOUND_SetDriver, 0
FSOUND_Init, 44100, 21,0
FSOUND_SetMixer,FSOUND_MIXER_QUALITY_MMXP6

Then I load the File and play the stream

FSOUND_Stream_OpenFile,pMusicFile,FSOUND_HW2D,iChannelID
FSOUND_Stream_Play,iChannelID,cMod

Then I Change the Volume with a ScrollBar

if uMsg==WM_HSCROLL
if wParam==SB_LINERIGHT
if iScrollPos < 255
iScrollPosition
SetScrollPos,hwndScroll,SB_CTL, iScrollPosition, TRUE
end if
end if

end if

FSOUND_SetVolume,iChannelID,iScrollPosition

That the code I use , the music plays fine but I can’t change the volume of a wma.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.