PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

How to play a sound or music?

Code:
if (m_Sound.Open() == E_OK) {
m_Sound.SetSoundVolume(222);
m_Sound.SetMusicVolume(200);

if (m_Sound.LoadSoundEffect(1, "go.wav") == E_OK)
{
m_Sound.PlaySound(1);
}

if (m_Sound.LoadMusic(0, "tianji.mp3") == E_OK)
{
m_Sound.PlayMusic(0);
}
}


I do it like this , but it was silence.
I used edgelib 3.97.
Is something wrong in my code ?
RapchikProgrammer · 16 Oct 2009, 10:57 UTC
have you defined this at the start of your application?

#define ESOUND_HEKKUS