• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
DLSMusicDeviceRelease crashes upon call of ConvertBuffer !!?????
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DLSMusicDeviceRelease crashes upon call of ConvertBuffer !!?????


  • Subject: DLSMusicDeviceRelease crashes upon call of ConvertBuffer !!?????
  • From: daniel oberhoff <email@hidden>
  • Date: Sat, 5 Apr 2003 20:56:11 +0200

Hi folks,

this one is very strange and i dont know what to make of it:

i use the audioconverter api in a set of tools to communicate with my
doepfer a112, and when i call the conversion i get a crash that
according to gdb comes from trying to release a DLSMusicDevice, which i
dont remember touching....

heres the crashlog from PB:

#0 0x94cc7d74 in SharedGraphMgr_ReleaseDLSMusicDevice
#1 0x94cd7654 in SharedGraphMgr_ReleaseDLSMusicDevice
#2 0x94cb2468 in __dynamic_cast
#3 0x94cb2304 in __dynamic_cast
#4 0x94cb6eb0 in restFP
#5 0x94cf410c in SharedGraphMgr_ReleaseDLSMusicDevice
#6 0x94cbc9b4 in AudioConverterConvertBuffer
#7 0x0000548c in -[controller applyConversion:] at controller.m:190
#8 0x930f90e4 in -[NSApplication sendAction:to:from:]
#9 0x93119868 in -[NSControl sendAction:to:]
#10 0x9315dfac in -[NSCell _sendActionFrom:]
#11 0x930f2924 in -[NSCell trackMouse:inRect:ofView:untilMouseUp:]
#12 0x93206934 in -[NSSliderCell trackMouse:inRect:ofView:untilMouseUp:]
#13 0x93206288 in -[NSSlider mouseDown:]
#14 0x930c0888 in -[NSWindow sendEvent:]
#15 0x930a8788 in -[NSApplication sendEvent:]
#16 0x930b1608 in -[NSApplication run]
#17 0x9315f6b8 in NSApplicationMain
#18 0x0000424c in main at main.m:13
#19 0x00003fd0 in _start at crt.c:267
#20 0x00003e50 in start

here is the call:

UInt32 iodatasize = 2 * m_dumpsize;

AudioConverterConvertBuffer(m_converter,
(m_numFramesLoaded - m_offset <
m_dumpsize ? m_numFramesLoaded - m_offset : m_dumpsize) *
m_fileDescr.mBytesPerFrame,
&filesamples[m_fileDescr.mBytesPerFrame
* m_offset],
&iodatasize,
[m_dumpdata mutableBytes]);


earlier in awake from nib:

m_dumpsize = 65536;
m_dumpdata = [[NSMutableData dataWithCapacity:m_dumpsize << 1]
retain];
[m_dumpdata setLength:m_dumpsize << 1];
m_filedata = [[NSMutableData dataWithCapacity:100000] retain];


i dont see anything dangerous there memorywise...

here is where i make the converter:

if (m_fileOpen == NO) return;
if (m_converter != nil)
AudioConverterDispose(m_converter);
AudioConverterNew(&m_fileDescr, &m_dumpDescr, &m_converter);


the dumpdescription is filled in nibawake like this:

m_dumpDescr.mFormatID = 'lpcm';
m_dumpDescr.mFormatFlags = kAudioFormatFlagIsSignedInteger |
kAudioFormatFlagIsNonInterleaved;
m_dumpDescr.mBytesPerPacket = 2;
m_dumpDescr.mFramesPerPacket = 1;
m_dumpDescr.mBytesPerFrame = 2;
m_dumpDescr.mChannelsPerFrame = 2;
m_dumpDescr.mBitsPerChannel = 8;


its stereo because i want the user to choose what is to be done with
stereo and the converter doesnt mix, so i do that...tho the prog doesnt
get to that point, due to the crash :(....

is this a bug? should i make a testcase?

hope anynoe can make something of this....

daniel
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Info on midnam files?
  • Next by Date: double-free in call to AUGraphRemoveNode()
  • Previous by thread: Info on midnam files?
  • Next by thread: Failing performAudioEngineStart
  • Index(es):
    • Date
    • Thread