search for: pcmdata

Displaying 6 results from an estimated 6 matches for "pcmdata".

Did you mean: pcdata
2004 Feb 19
3
Ov_open crash in windows
...RNEL32! bff7b9a6() VORBISFILE! 00471d1d() I am running Win98 and v1.0 off the vorbis libs. The app is single- threaded. The following code works just fine in a test app I built, but when I add it to another app, the error occurs: int CSound::LoadVorbisFile(char *fname) { FILE *file; char *pcmData = NULL; const int pcmDataSize = 0x400000; pcmData = new char[pcmDataSize]; if(pcmData != NULL) { // Open the file if( (file = fopen(fname,"rb")) != NULL) { int oggRetVal = ov_open(file,&m_VorbisFile,NULL,0); Does anybody have any suggestions...
2001 Jul 05
1
Streaming buffers/ov_read question
...s anyone had experience using ov_read in a thread with streaming directsound buffers? i have tried the following, but it just produces a repeating garbage noise. i would appreciate some help. notes: test.ogg in my code was a song that i converted to the vorbis format (Gorillaz - Cling Eastwood) pcmData is defined like this: char pcmData[4096]; the ogg file and the directsound buffer (lpdsBuffer and vorbisFile) have already been set up properly. // code start void PlaybackThread(void *param) { UCHAR *ptr1, *ptr2; DWORD len1, len2; long retVal; int bytes_to_read = 4096; int writeCursor = 0;...
2006 Jan 17
1
How to loop a Vobis sound ?
...sound file is played correctly for the first time, then when rewind to the initial position. then copy PCM to buffer, the OpenAL report an error. It seems like the OpenAL doesn't recognize the PCM data. The OpenAL error number : AL_INVALID_VALUE 0xA003 void Buffer::PCMData (ALuint id, ALenum eFormat, ALvoid *data, ALsizei size, ALsizei freq) { // Copy PCM data into ALBuffer // all variables id, eFomat and size, freq are correct. alBufferData (id, eFormat, data, size, freq); ALErrorCheck (); } void Buffer::ALErrorCheck () { int error = alGet...
2006 Sep 06
2
Getting subframe type=verbatim on 16 bit files
...false); setValue = flacCompressor.set_do_escape_coding(false); if (numChannels > 1) { setValue = flacCompressor.set_do_mid_side_stereo(true); setValue = flacCompressor.set_loose_mid_side_stereo(true); } if (!flacCompressor.SetupInboundBuffer(pcmData)) return false; FLAC__StreamMetadata padding; FLAC__StreamMetadata *metadata [1]; // stuff some pading for metadata padding.type = FLAC__METADATA_TYPE_PADDING; padding.is_last = 0; padding.length = 40; metadata[0]...
2006 Sep 06
0
Getting subframe type=verbatim on 16 bit files
...escape_coding(false); > > > if (numChannels > 1) > { > setValue = flacCompressor.set_do_mid_side_stereo(true); > setValue = flacCompressor.set_loose_mid_side_stereo(true); > } > > if (!flacCompressor.SetupInboundBuffer(pcmData)) return false; > > > FLAC__StreamMetadata padding; > FLAC__StreamMetadata *metadata [1]; > > // stuff some pading for metadata > padding.type = FLAC__METADATA_TYPE_PADDING; > padding.is_last = 0; > padd...
2006 Sep 07
2
Getting subframe type=verbatim on 16 bit files
...>> >> if (numChannels > 1) >> { >> setValue = flacCompressor.set_do_mid_side_stereo(true); >> setValue = flacCompressor.set_loose_mid_side_stereo(true); >> } >> >> if (!flacCompressor.SetupInboundBuffer(pcmData)) return false; >> >> >> FLAC__StreamMetadata padding; >> FLAC__StreamMetadata *metadata [1]; >> >> // stuff some pading for metadata >> padding.type = FLAC__METADATA_TYPE_PADDING; >> padding.i...