soudns stop playing after 5 seconds.

ubuntu linux, panda3d1.9_1.9.0~cvs20140611~precise317_amd64.deb

soudns stop playing after 5 seconds.
it looks like it is limeted by time or something like this.

#include “/usr/include/panda3d/audioManager.h”
#include “/usr/include/panda3d/audioSound.h”

PT(AudioManager) AMmusic = AudioManager::create_AudioManager();
PT(AudioSound) menu_music_pt = AMmusic->get_sound(“sounds/TUNE6.ogg”) ;


Can you post your .ogg file?

i use it only for test
you need to press on name of the file TUNE6.ogg

If I’m not mistaken, this is the behavior that you get when AudioManager::update isn’t called at every step of the main loop. If you stop updating it, it’ll stop playing.
Make sure you do call AudioManager::update in one of your AsyncTask (or make an AsyncTask to handle audio in your game and call AudioManager::update in it, something like that).

yes thanks a lot :slight_smile:

AMmusic->update(); // in main loop