Hi-
Using Matthias Pfisterer's circular buffer fix for tritonus solved a lot of
my problems with chopped off OGG audios when playing in Java. I was hoping
it would fix another problem I'm having, but unfortunately, it didn't.
One particular OGG file, when played using our application on OS X, causes
the application to crash. The same OGG file on Windows has no problem. The
crash happens just after the audio has finished playing (using a Clip). I
put a breakpoint in the update(LineEvent) method of the LineListener to try
and see when the crash occurred. The crash seems to happen at the same time
as I hit the breakpoint, making me think that some other thread is causing
the crash.
We're using Java 1.4.1_01.
One thing to know about our OGG audio files: The original audio files are
recorded in AIF format (16 bit mono, 22KHz) using Sound Designer 2 and a
program called BarbaBatch. Using Oggenc.exe (from vorbis.com), the audios
are converted to OGG, using level 2.
The relevant details from the crash log are:
**********
Date/Time: 2004-09-27 08:46:39 -0500
OS Version: 10.2.8 (Build 6R73)
Host: Apple.local.
Command: java
PID: 449
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x10745000
Thread 23 Crashed:
#0 0x7d5c4d64 in SR_resample32_add
#1 0x7d5bcd24 in PV_ServeStereoResamplePartialBuffer16
#2 0x7d5b7498 in PV_GetWavePitch
#3 0x7d5b94bc in GM_GetAudioSampleFrame
#4 0x7d5b7a74 in PV_ProcessSampleFrame
#5 0x7d5b7698 in HAE_BuildMixerSlice
#6 0x7d5c5e40 in HAE_ReleaseAudioCard
#7 0x106136f4 in 0x106136f4
#8 0x1068d880 in
_ZN21FormatConverterClient10InitializeERK27AudioStreamBasicDescriptionS2_
#9 0x1068d5cc in
_ZN21FormatConverterClient10InitializeERK27AudioStreamBasicDescriptionS2_
#10 0x94cb5438 in _ZN19AudioConverterChain13CallInputProcEm
#11 0x94cb50a4 in
_ZN19AudioConverterChain23FillBufferFromInputProcEPmS0_P12CABufferListPP28Au
dioStreamPacketDescription
#12 0x94cb147c in
_ZN22BufferedAudioConverter13GetInputBytesEmRmRPK12CABufferList
#13 0x94cb16a8 in
_ZN12CBRConverter12RenderOutputEP12CABufferListmRmP28AudioStreamPacketDescri
ption
#14 0x94cb12b0 in
_ZN22BufferedAudioConverter10FillBufferERmR15AudioBufferListP28AudioStreamPa
cketDescription
#15 0x94cb4fac in
_ZN19AudioConverterChain12RenderOutputEP12CABufferListmRmP28AudioStreamPacke
tDescription
#16 0x94cb12b0 in
_ZN22BufferedAudioConverter10FillBufferERmR15AudioBufferListP28AudioStreamPa
cketDescription
#17 0x94cb1610 in AudioConverterFillComplexBuffer
#18 0x10612e64 in 0x10612e64
#19 0x1068d150 in
_ZN6AUBase11DoRenderBusERmRK14AudioTimeStampmP15AUOutputElementmR15AudioBuff
erList
#20 0x1060fcbc in 0x1060fcbc
#21 0x1061755c in AUHALEntry
#22 0x9464360c in _ZN9IOADevice11CallIOProcsERK14AudioTimeStampS2_S2_
#23 0x94643a60 in _ZN10HPIOThread9PerformIOERK14AudioTimeStamp
#24 0x94642c14 in _ZN10HPIOThread8WorkLoopEv
#25 0x9465919c in _ZN10HPIOThread11ThreadEntryEPS_
#26 0x946591e0 in _ZN9CAPThread5EntryEPS_
#27 0x90020c28 in _pthread_body
---
Mark Brown, Senior Software Engineer
Innovative Software Engineering
Technology Innovation Center
100 Oakdale Campus, #101 TIC
Iowa City, IA 52242
"The difference between ordinary and extraordinary is that little extra"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden