[Done] InitSound() returns 0 but ogg/wav files can be hear.

Post bugreports for the Windows version here
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

[Done] InitSound() returns 0 but ogg/wav files can be hear.

Post by IceSoft »

SoundPlugin.pb (copy from Help page):

Code: Select all

If InitSound() = 0
  MessageRequester("Error", "Can't initialize the sound system",  0)
  End
EndIf

UseOGGSoundDecoder()

SoundFileName$ = OpenFileRequester("Choose a sound file", "", "Wave or OGG files|*.wav;*.ogg",0)
If SoundFileName$
  If LoadSound(0, SoundFileName$)
    PlaySound(0,#PB_Sound_Loop)
    MessageRequester("Sound", "Playing the sound (loop)..."+Chr(10)+"Click to quit..", 0)
  Else
    MessageRequester("Error", "Can't load the sound.", 0)
  EndIf
EndIf
End
InitSound() returns 0 but ogg/wav files can be hear.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Fred
Administrator
Administrator
Posts: 16581
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [Done] InitSound() returns 0 but ogg/wav files can be hear.

Post by Fred »

Fixed.
Post Reply