Re: Crash in TDeinterleaver with mono sound
Re: Crash in TDeinterleaver with mono sound
- Subject: Re: Crash in TDeinterleaver with mono sound
- From: Doug Wyatt <email@hidden>
- Date: Tue, 31 May 2005 15:41:09 -0700
It's definitely in a stereo deinterleaving loop; so the converter
seems to think you specified stereo at some point in the past.
The immediate cause of the crash is that the output buffer being
passed to the AudioConverter is invalid.
Are you being sure to refresh your buffer list before every call to
AudioConverterConvertComplexBuffer?
After you call AudioConverterNew, try CAShow(myAudioConverter). That
will show you the formats and the internal "sub-converters" that are
being used.
Doug
On May 30, 2005, at 8:39, Daniel Pageau wrote:
Hi,
I have a crash that occurs only on Tiger. I have 2 buffers playing
with only one channel. The crash happens every 2-4 hours on Tiger.
The sound format flag kAudioFormatFlagIsNonInterleaved is set. The
audio converter is used to change from int16 to float32. There is
only one channel so why it needs to deinterleave something?
Here a part of the crash log:
Thread 4 Crashed:
0 ....audio.toolbox.AudioToolbox 0x94110b20
TDeinterleaver<PCMSInt32Native, PCMSInt32Native>::Deinterleave(int,
void const*, void**, int) + 768
1 ....audio.toolbox.AudioToolbox 0x9407e2b0
CBRConverter::RenderOutput(CABufferList*, unsigned long, unsigned
long&, AudioStreamPacketDescription*) + 204
2 ....audio.toolbox.AudioToolbox 0x9407dfdc
BufferedAudioConverter::FillBuffer(unsigned long&,
AudioBufferList&, AudioStreamPacketDescription*) + 292
3 ....audio.toolbox.AudioToolbox 0x9407e158
AudioConverterChain::RenderOutput(CABufferList*, unsigned long,
unsigned long&, AudioStreamPacketDescription*) + 136
4 ....audio.toolbox.AudioToolbox 0x9407dfdc
BufferedAudioConverter::FillBuffer(unsigned long&,
AudioBufferList&, AudioStreamPacketDescription*) + 292
5 ....audio.toolbox.AudioToolbox 0x9407de68
AudioConverterFillComplexBuffer + 280
6 com.beenox.game 0x002e87c0
BXCoreAudioBuffer::RenderCallback(void*, unsigned long*,
AudioTimeStamp const*, unsigned long, unsigned long,
AudioBufferList*) + 160
7 ...pple.audio.units.Components 0x9ae83d18 AUMixer3DEntry + 8512
8 ...pple.audio.units.Components 0x9ae83da8 AUMixer3DEntry + 8656
9 ...pple.audio.units.Components 0x9ae84a58 AUMixer3DEntry + 11904
10 ...pple.audio.units.Components 0x9ae85578 AUMixer3DEntry + 14752
11 ...pple.audio.units.Components 0x9af16d4c
dyld_stub__keymgr_get_and_lock_processwide_ptr + 25740
12 ...pple.audio.units.Components 0x9af18948
dyld_stub__keymgr_get_and_lock_processwide_ptr + 32904
13 ...pple.audio.units.Components 0x9ae4e170 DefaultOutputAUEntry
+ 29112
14 ...pple.audio.units.Components 0x9ae55140
AUHighShelfFilterEntry + 4960
15 ...pple.audio.units.Components 0x9ae4e840 DefaultOutputAUEntry
+ 30856
16 ...pple.audio.units.Components 0x9af190b4
dyld_stub__keymgr_get_and_lock_processwide_ptr + 34804
17 ...pple.audio.units.Components 0x9af18de4
dyld_stub__keymgr_get_and_lock_processwide_ptr + 34084
18 ....audio.toolbox.AudioToolbox 0x9407eff8
AudioConverterChain::CallInputProc(unsigned long) + 332
19 ....audio.toolbox.AudioToolbox 0x9407ec48
AudioConverterChain::FillBufferFromInputProc(unsigned long*,
unsigned long*, CABufferList*) + 128
20 ....audio.toolbox.AudioToolbox 0x9407e410
BufferedAudioConverter::GetInputBytes(unsigned long, unsigned
long&, CABufferList const*&) + 212
21 ....audio.toolbox.AudioToolbox 0x9407e268
CBRConverter::RenderOutput(CABufferList*, unsigned long, unsigned
long&, AudioStreamPacketDescription*) + 132
22 ....audio.toolbox.AudioToolbox 0x9407dfdc
BufferedAudioConverter::FillBuffer(unsigned long&,
AudioBufferList&, AudioStreamPacketDescription*) + 292
23 ....audio.toolbox.AudioToolbox 0x9407e158
AudioConverterChain::RenderOutput(CABufferList*, unsigned long,
unsigned long&, AudioStreamPacketDescription*) + 136
24 ....audio.toolbox.AudioToolbox 0x9407dfdc
BufferedAudioConverter::FillBuffer(unsigned long&,
AudioBufferList&, AudioStreamPacketDescription*) + 292
25 ....audio.toolbox.AudioToolbox 0x9407de68
AudioConverterFillComplexBuffer + 280
26 ...pple.audio.units.Components 0x9ae4e404 DefaultOutputAUEntry
+ 29772
27 ...pple.audio.units.Components 0x9af18948
dyld_stub__keymgr_get_and_lock_processwide_ptr + 32904
28 ...pple.audio.units.Components 0x9ae4e170 DefaultOutputAUEntry
+ 29112
29 ...pple.audio.units.Components 0x9ae4d80c DefaultOutputAUEntry
+ 26708
30 com.apple.audio.CoreAudio 0x913b6660
IOA_Device::CallIOProcs(AudioTimeStamp const&, AudioTimeStamp
const&, AudioTimeStamp const&) + 376
31 com.apple.audio.CoreAudio 0x913b6374
HP_IOThread::PerformIO(AudioTimeStamp const&) + 532
32 com.apple.audio.CoreAudio 0x913b43b0 HP_IOThread::WorkLoop
() + 1156
33 com.apple.audio.CoreAudio 0x913b3f18
HP_IOThread::ThreadEntry(HP_IOThread*) + 16
34 com.apple.audio.CoreAudio 0x913a50fc CAPThread::Entry
(CAPThread*) + 96
35 libSystem.B.dylib 0x9002c3d4 _pthread_body + 96
Daniel Pageau
Lead programmer, Beenox Inc.
T: 418-522-2468 x234
F: 418-522-2661
771, St-Joseph Est, Suite 102
Quebec, QC, Canada, G1K3C7
http://www.beenox.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden