• 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
Re: Using virtual Memory on a sample player in AU
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using virtual Memory on a sample player in AU


  • Subject: Re: Using virtual Memory on a sample player in AU
  • From: Philippe Wicker <email@hidden>
  • Date: Sat, 3 Jan 2004 09:24:37 +0100

On Saturday, January 3, 2004, at 05:30 AM, Cyril Blanc wrote:

Ciryl,

Thanks for your wishes. My turn to wish you and to all people in this list a happy 2004 year.

Hello

I wish you all ; all the best for 2004.

I use a product called .. (I will not name it because I do not want to put
too much shame on this company)

The programmer from that company does not seem to manage to write a virtual
memory handler for there sampler using Audio Units.

Is there is somewhere a document/source code that could help them.

When dealing with large samples, a good approach is to stream them from disk instead of loading them entirely in memory. The basic idea is to read chunks of the sample file according a ping/pong scheme. The first chunks of samples that may be used in a give song should be resident in memory in order to guarantee a short latency when the note-on events (StartNote) occur.

I don't know of any documentation targeted on that specific topic, nor of complete ready-to-use disk streaming sample player source code. Some partial answers are available here and there. I know of 3 sample codes dealing with reading a file chunk by chunk: FileAudioPlay (C++) in the CoreAudio SDK, PlayBufferedSoundFile (Obj C) written by Kurt Revis ( www.snoize.com ), and FilePlayer (C++) that can be found on my site ( http://homepage.mac.com/pwicker ). This last sample includes code to manage looping between arbitrary left and right locators.

When the work on my main project (the Audio IPC SDK) leave me some time, I work on a sample player based on disk streaming. You may give my email address to this programmer, I'd be glad to share my experience with him.



Thanks in advance.

Best regards

Cyril Blanc
France

If you want to be sure I read your answer leave my name in it !
Spam mails are directly going to trash
_______________________________________________
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.


Philippe Wicker
email@hidden
_______________________________________________
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.

References: 
 >Using virtual Memory on a sample player in AU (From: Cyril Blanc <email@hidden>)

  • Prev by Date: Re: where do the AUs come from?
  • Next by Date: sending out MIDI events with the Java CoreMIDI API through a MIDISport
  • Previous by thread: Using virtual Memory on a sample player in AU
  • Next by thread: Re: where do the AUs come from?
  • Index(es):
    • Date
    • Thread