Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Music, Pictures and Video > How to play ogg vorbis file using waveout APIs with vorbis.acm installed.

Reply
Thread Tools Display Modes

How to play ogg vorbis file using waveout APIs with vorbis.acm installed.

 
 
Junior Member
Join Date: Jun 2011
Posts: 4

 
      07-05-2011
Hi,

I installed the vorbis.acm codec and tried to play the ogg file using waveout APIs. The return value for waveOutPrepareHeader(), waveOutWrite() and waveOutUnprepareHeader is 0(success) only but the sound is not playing.

I set the waveformatex structure as follows.

WAVEFORMATEX waveform;

waveform.wFormatTag = WAVE_FORMAT_VORBIS2;

waveform.nChannels = 2;

waveform.nSamplesPerSec = 22050;

waveform.wBitsPerSample = 16;

waveform.cbSize = 0;

waveform.nBlockAlign = (waveform.nChannels * waveform.wBitsPerSample)/8;

waveform.nAvgBytesPerSec = 8000;

I set the wavehdr structure as follows.

WaveHeader.lpData=buffer;

WaveHeader.dwBufferLength=4080;

WaveHeader.dwFlags=0;

WaveHeader.dwLoops=0;

Can anybody please suggest what is the problem with my settings?

Thanks.
 

Last edited by user471; 07-05-2011 at 07:20 AM..
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble installing Windows XP SP3 and other MS updates DanP Windows Update 27 08-18-2010 09:34 PM
"No Audio Output Device is installed" Paul H Windows Vista General Discussion 16 07-19-2010 11:29 PM
Backup Not Completeing Bogong Windows Small Business Server 11 05-11-2010 02:00 PM
Copying Shared folders and retaining share and file permissions Bry M Server Networking 7 03-24-2010 01:12 PM
chkdsk : NTFS on Vista x64 Nigel Windows Vista File Management 5 06-02-2008 02:02 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59