Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Error playing .wav w/ convert to 4-channels on (Read 8229 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Error playing .wav w/ convert to 4-channels on

When I try to play a (stereo) .wav file with Convert stereo to 4-channels selected I get an error:

ERROR (foo_output_std) : error creating DirectSound buffer
INFO (foo_output_std) : attempting to create DirectSound buffer : 48000S/s 16bps 4ch fixed-point

However, I can play the file without the DSP on.

Error playing .wav w/ convert to 4-channels on

Reply #1
Can you play other stereo sources with that DSP enabled? What sample rate is it?

Error playing .wav w/ convert to 4-channels on

Reply #2
Egh!! After attempting to recreate this I played an mp3 I got non stop c++ runtime errors saying "pure virtual function call"..

That was not nice.. I think it said foo_output_std.dll in the message, they kept coming repeatedly (about two/three a sec), but the song was playing, I then closed foobar because they kept coming..
.

Error playing .wav w/ convert to 4-channels on

Reply #3
Pure Virtual Function Call = Bad

I wonder how you managed that.

Error playing .wav w/ convert to 4-channels on

Reply #4
Quote
Pure Virtual Function Call = Bad

I wonder how you managed that.

I can reproduce it, im putting up a screeny now, and ill add the reproducing instructions..



Ok this is what I done, it always results in the error.

1. Clear playlist
2. Add some wavs
3. Go to DSP manager, put convert stereo to 4 ch/attentutation/adv limiter.
4. Play some wavs.
5. Stop playback
6. Clear playlist
7. Change DSP manager to Resampler (48Hz, fast, 64bit)/attent./limiter
8. Add mp3s.
9. Play mp3s.

This is with an Audigy, foobar 0.6 final.

edit: more info. wavs are mixed quality, ranging from 11025Hz/mono/8bit to 44.1kHz/stereo/16 bit. Mp3s are the latter.

Ouput format is 16 bit fixed point (direct sound).
.

Error playing .wav w/ convert to 4-channels on

Reply #5
[deleted]

Error playing .wav w/ convert to 4-channels on

Reply #6
Ok I'll clear out plugins and try agin, ill edit this post then.

BTW no id3v2 reader here.

Ok I couldn't reproduce it without the extra plugins. Im gonna try with foo_out_asio and foo_out_openal since they seem the most obvious related.

Edit: Its not 100% reproducable. It happens sometimes, sometimes it doesn't. I know which wave was playing beforehand so I can try with just that one, but I havent come to any conclusions about plugins.

The wave that was playing beforehand was 11025Hz/mono/8bit.
.

Error playing .wav w/ convert to 4-channels on

Reply #7
[deleted]

Error playing .wav w/ convert to 4-channels on

Reply #8
Ok i tried 3 more times with only that one wave, then repeating the rest of the instructions, with all the plugins. I was unable to reproduce it.

As far as I can tell, there is something particular about the order of events or the order I play the waves, Im not sure, maybe its the mp3 that plays because that's been random, but I can't continue to test today, I will try and track it down tomorrow.

I also forgot to remove the 4ch dsp a couple times when I got the error so it may be related. We'll see tomorrow.
.

Error playing .wav w/ convert to 4-channels on

Reply #9
If its any help the .wav file I'm trying to play has these specifications:

bitrate = 1536
samplerate = 48000
channels = 2
bitspersample = 16

The file is quite large (>400Mb) but I don't have another stereo .wav file to test against, so I will look into that tomorrow.

Error playing .wav w/ convert to 4-channels on

Reply #10
I cant stay long but more info about my problem:

1) i can reproduce it by just playing the wavs (repeatedly pressing random)
2) today im getting a variety of messages, crashes in random plugins or "unknown", as well as pure virtual function call.
3) however, i had severe trouble reproducing it today too.

These are the details of the wavs im playing:

44100Hz 16bps 2ch
22050Hz 8bps 1ch
11025Hz 8bps 1ch
22050Hz 16bps 2ch
22050Hz 8bps 1ch

Reminder: DSP chain for crash is stereo to 4ch > attent. > adv limiter. Output is DS 16bit fixed point, dithered.

My dtwtsn32 has gone awol and doesnt make crash logs anymore, otherwise Id have those too. (i dont know how to fix it, running drwtsn32 shows settings are ok). But an example of the random crash is:



Details of loaded plugins, and those ruled out (updated):

foo_addall.dll
foo_albumlist2.dll
foo_dsp_soundtouch.dll
foo_dsp_xbass.dll
foo_playlistfind.dll
foo_shizzle.dll

Components rules out:
foo_textu.dll
foo_dbsearch.dll
foo_clienc.dll
foo_delete.dll
foo_dsp_crossfeed.dll
foo_dsp_pause.dll
foo_dsp_reverb.dll
foo_ExtraStereo.dll
foo_history.dll
foo_mod.dll
foo_mp4.dll
foo_mpcenc.dll
foo_nez.dll
foo_output_oal.dll
foo_psf.dll
foo_speex.dll
foo_surround.dll
foo_vorbisenc.dll
foo_xa.dll
foo_output_asio.dll

By ruled out I mean I got the crashes when they weren't loaded.
.

Error playing .wav w/ convert to 4-channels on

Reply #11
I can tell you that it's not foo_shizzle, because foo_shizzle doesn't do anything when it's not open. (There is no init-quit code)

It's also not foo_delete, which is too simple to be causing that kind of error.

Error playing .wav w/ convert to 4-channels on

Reply #12
Does Dr. Watson always report foo_history as the crashing module? I admit it is my least tested component.

Error playing .wav w/ convert to 4-channels on

Reply #13
Quote
Does Dr. Watson always report foo_history as the crashing module? I admit it is my least tested component.

Yeah, seems so

musicmusic: Can you try without foo_history.dll?

Error playing .wav w/ convert to 4-channels on

Reply #14
I uploaded foo_history 0.2 (dl it from http://www.stud.uni-karlsruhe.de/~uzbs/fb2...2k/foo_history/ ). I didn't really find a problem, after all how many errors can there possibly be in ~160 lines of code?  Nevertheless, I added some safety checks and console output. I hope you can track what is really causing the problem - and that it isn't foo_history.

Error playing .wav w/ convert to 4-channels on

Reply #15
I really don't think its anything to do with foo_history because its crashed in "unknown" too, other than that its the "pure virtual function call". As far as I can tell its related to outputing at different sample rates.

Anyway before I mess around for more crashes I'm gonna try awakening my Dr. Watson so at least I can get the crash logs..

edit: ok found it, reg key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug \Auto to re-enable drwtsn32.
.

Error playing .wav w/ convert to 4-channels on

Reply #16
This screenshot says it all. This was without foo_history so that is ruled out too.



Note: look at the status bar, 1 second played. It seems logical to me that there is an issue in foobar relating to outputing at different sample rates with direct sound.

The reproducing steps are simple set DSP to what i said before (no resampler otherwise your outputting at same sample rate), load the wavs, and press random a few times.

I've actually ruled out most 3rd party plugins now, im updating the list. Ok done, I dont see anything wrong with those 3rd party plugins. There's a bug somewhere, that's all i know, maybe its the ICL foo_dsp_extra? I dont know about these things, but it was just a thought.
.

Error playing .wav w/ convert to 4-channels on

Reply #17
zip up your entire fb2k dir and upload somewhere
try using different outputs
remove ANY components that arent absolutely needed
etc
Microsoft Windows: We can't script here, this is bat country.

Error playing .wav w/ convert to 4-channels on

Reply #18
Quote
zip up your entire fb2k dir and upload somewhere
try using different outputs
remove ANY components that arent absolutely needed
etc

I tried very hard, I couldn't reproduce with waveout. I cant upload now anyway. Thre's practically no components right now, I also stripped out most the ones included with foobar too. 
.


Error playing .wav w/ convert to 4-channels on

Reply #20
Quote
try this: http://foobar2000.hydrogenaudio.org/foo_dsp_extra.dll - compiled with my msvc6 instead of icl

I done a fair bit of testing and so far no errors. I guess ICL needs to be killed too.

BTW with the wav the errors where about 10x faster.. and the wav's bps is something like that times greater than the mp3.
.

Error playing .wav w/ convert to 4-channels on

Reply #21
ok thank you, 0.61 coming out soon will include msvc6 build of foo_dsp_extra.dll again
Microsoft Windows: We can't script here, this is bat country.

Error playing .wav w/ convert to 4-channels on

Reply #22
[deleted]

Error playing .wav w/ convert to 4-channels on

Reply #23
Quote
What kind of CPU do you have?  What OS?

athlon 1.2 ghz 266fsb + win xp sp1.
.