[CLAM] AudioOut problems

jordi sesmero molina jordi.sesmero01 at campus.upf.es
Thu Nov 6 16:10:25 PST 2003


Hello, 
We have some problems with CLAM AudioOut functions.

- First of all, we initialize the AudioManager and AudioOut exactly represented on 
AudioIO sample (in the MyCLAMApp constructor):

	AudioIOConfig ioConfig;
	
	ioConfig.SetName("left out");				
	ioConfig.SetDevice("default:default");
	ioConfig.SetSampleRate(44100);	
	ioConfig.SetFrameSize(512);
	ioConfig.SetChannelID(0);
	
	// Preparem el AudioOut		
	m_AudioManager = new AudioManager(44100, 512);
	AudioManager::Current().Start();
	mOutput = new AudioOut(ioConfig);
- Then, the user must choose to load the file, and the file is correctly loaded in
'mAudio' member.
When he chooses to Listen the sound, the program executes this code:
	try 
	{
		// Ja podem reproduir el so guardat a mAudio
		//cout << "m_AudioManager->Start();" << std::endl;
		//m_AudioManager->Start();		
		cout << "mOutput->Start();" << std::endl;
		mOutput->Start();

		cout << "mOutput->Do();" << std::endl;
		while (1) 
		{
			mOutput->Do(mAudio);
		}
		
		//mOutput->Stop();
		cout << "Fi de la reproducció." << std::endl;
	}
	catch(CLAM::Err& err) // check for CLAM internal exceptions
	{
		cout << "------> [2] Error Playing." << std::endl;
		err.Print();
		exit(-1);
	}	

-----> Just in this point, where mOutput->Start() is called, we get
this assertion error:

	##########################################################
	################### ASSERTION FAILED #####################
	##########################################################
	At file c:\clam\devel\src\processing\base\processing.cxx line 128
	Start(): Object not ready

- Anyone knows what kind of stuff we're forgetting?

Thanks.

Jordi Sesmero [www.jsmsoftware.tk]

________________________________________________________________________________________
Este mensaje ha sido analizado y protegido por la tecnologia antivirus www.trendmicro.es




More information about the clam-users mailing list