• 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
What exception to launch when AudioConverterDataSupplier fails?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What exception to launch when AudioConverterDataSupplier fails?


  • Subject: What exception to launch when AudioConverterDataSupplier fails?
  • From: Hugues Pisapia <email@hidden>
  • Date: Wed, 17 Dec 2003 22:55:16 +0100

Hi there,

I am implementing the com.apple.toolbox.AudioConverterDataSupplier interface to feed an AudioConverter with data comming from a java.io.InputStream.

When some Exception occurs while reading in this InputStream, I though that throwing a 'new CAException(myExc.toString())' would make the AudioConverter informed of my problem... However, it resulted with a complete crash of the application :-(

I went into the documentation and found QA1317 talking about how to inform the AC that no more data is available. But I did not find anything about what to return... Can someone tell me about that? I preferred not my application to crash when something like that occur.

Thanks,
Hugues
_______________________________________________
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.

  • Follow-Ups:
    • Re: What exception to launch when AudioConverterDataSupplier fails?
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: Another Threading Issue
  • Next by Date: Re: Developing Tool for Audio program
  • Previous by thread: Re: Another Threading Issue
  • Next by thread: Re: What exception to launch when AudioConverterDataSupplier fails?
  • Index(es):
    • Date
    • Thread