I've implemented a simple sound playing class using directX audio. But when I play my sounds they've got echos on them. I don't want that and I never specified any effects. I don't set any audiopath or anything.
This is how I load my sounds:
void DirectAudio::LoadSound(WCHAR *filename, int soundNr)
{
// Create segment
m_pSegments[soundNr] = NULL;
CoCreateInstance(CLSID_DirectMusicSegment, NULL, CLSCTX_INPROC, IID_IDirectMusicSegment8, (void**) &m_pSegments[soundNr]);
// Load the file
m_pLoader->LoadObjectFromFile(CLSID_DirectMusicSegment, IID_IDirectMusicSegment8, filename, (void**) &m_pSegments[soundNr]);
// Download the band
m_pSegments[soundNr]->Download(m_pPerformance);
}
And this is how I play it:
void DirectAudio::Play(int soundNr)
{
m_pPerformance->PlaySegment(m_pSegments[soundNr], NULL, 0, NULL);
}
[Edited by - Sepultang on August 21, 2005 12:30:40 PM]