# FMOD I dont hear sound

**URL:** <https://qa.fmod.com/t/fmod-i-dont-hear-sound/11631>\
**Category:** FMOD Engine\
**Created:** [September 9, 2014, 9:16am UTC](https://qa.fmod.com/t/fmod-i-dont-hear-sound/11631 "2014-09-09T09:16:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elseine](https://avatars.discourse-cdn.com/v4/letter/e/8baadc/32.png) [@elseine](https://qa.fmod.com/u/elseine)\
**Post date:** [September 9, 2014, 9:16am UTC](https://qa.fmod.com/t/fmod-i-dont-hear-sound/11631/1 "2014-09-09T09:16:10Z")

</div>

I am using FMOD on Ubuntu and i think that now the sound must be heared, but I dont hear sound.

SoundEngine.h

```
#ifndef SOUNDENGINE_H_
#define SOUNDENGINE_H_

#include "FMOD/inc/fmod.hpp" //fmod c++ header
//#include "FMODEX/inc/fmodlinux.h"

class SoundEngine{
public:
	bool initSystem(void);
	void update(void);
private:
	//FMod Stuff
		FMOD_SYSTEM *system; //handle to FMOD engine
	    FMOD_SOUND *sound1, *sound2; //sound that will be loaded and played
	    FMOD_CHANNELGROUP *channels;
};

```

And SoundEngine.cpp

```
#include "SoundEngine.h"
#include <iostream>
using namespace std;
FMOD_RESULT result;
bool SoundEngine::initSystem()
{
    result = FMOD_System_Create(&system);
    unsigned int version;
    cout<<result<<endl;
    result = FMOD_System_Init(system, 1, FMOD_INIT_NORMAL, NULL);
    cout<<result<<endl;

    cout<<"Sonido"<<endl;
    //load sounds
    result = FMOD_System_CreateSound(system, "Media/NMG.mp3", FMOD_CREATESAMPLE, 0, &sound1);
    cout<<result<<endl;
    result = FMOD_System_CreateChannelGroup(system,"canal",&channels);
    cout<<result<<endl;
    result = FMOD_System_PlaySound(system, sound1,channels, 1, NULL);
    cout<<result<<endl;
    
    cout<<"Sonido"<<endl;
    return true;
}

```

I think that its correct and must play sound, but I dont hear nothing( and I have the computer volume turn on and works). Its there any other method that I need to use?

I also use FMOD\_System\_Update() in every frame.

And tried to put

while(true) FMOD\_System\_Update();

Inside the initSystem methor but it doesnt work.

PS: I dont know if this is the correct forum to put this (FMOD 4) but tell me if I am wrong.

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [September 10, 2014, 10:34pm UTC](https://qa.fmod.com/t/fmod-i-dont-hear-sound/11631/2 "2014-09-10T22:34:53Z")

</div>

> [@](#):
>
> I am using FMOD on Ubuntu and i think that now the sound must be heared, but I dont hear sound.
> 
> SoundEngine.h
> 
> ```
> #ifndef SOUNDENGINE_H_
> #define SOUNDENGINE_H_
> 
> #include "FMOD/inc/fmod.hpp" //fmod c++ header
> //#include "FMODEX/inc/fmodlinux.h"
> 
> class SoundEngine{
> public:
> bool initSystem(void);
> void update(void);
> private:
> //FMod Stuff
> FMOD_SYSTEM *system; //handle to FMOD engine
> FMOD_SOUND *sound1, *sound2; //sound that will be loaded and played
> FMOD_CHANNELGROUP *channels;
> };
> 
> ```
> 
> And SoundEngine.cpp
> 
> ```
> #include "SoundEngine.h"
> #include <iostream>
> using namespace std;
> FMOD_RESULT result;
> bool SoundEngine::initSystem()
> {
> result = FMOD_System_Create(&system);
> unsigned int version;
> cout<<result<<endl;
> result = FMOD_System_Init(system, 1, FMOD_INIT_NORMAL, NULL);
> cout<<result<<endl;
> 
> cout<<"Sonido"<<endl;
> //load sounds
> result = FMOD_System_CreateSound(system, "Media/NMG.mp3", FMOD_CREATESAMPLE, 0, &sound1);
> cout<<result<<endl;
> result = FMOD_System_CreateChannelGroup(system,"canal",&channels);
> cout<<result<<endl;
> result = FMOD_System_PlaySound(system, sound1,channels, 1, NULL);
> cout<<result<<endl;
>     
> cout<<"Sonido"<<endl;
> return true;
> }
> 
> ```
> 
> I think that its correct and must play sound, but I dont hear nothing( and I have the computer volume turn on and works). Its there any other method that I need to use?
> 
> I also use FMOD\_System\_Update() in every frame.
> 
> And tried to put
> 
> while(true) FMOD\_System\_Update();
> 
> Inside the initSystem methor but it doesnt work.
> 
> PS: I dont know if this is the correct forum to put this (FMOD 4) but tell me if I am wrong.

EDIT: Moved to FMOD5 category.

---

<div class="post-metadata">

**Author:** ![nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nick1](https://qa.fmod.com/u/nick1)\
**Post date:** [September 10, 2014, 12:33am UTC](https://qa.fmod.com/t/fmod-i-dont-hear-sound/11631/3 "2014-09-10T00:33:21Z")

</div>

You’re passing 1 in fourth argument of FMOD\_System\_PlaySound, which is means the channel is created in the paused state.

Either you need to pass 0 for that parameter, or get the channel handle back from FMOD\_System\_PlaySound and call FMOD\_Channel\_SetPaused(channel, 0).
