• 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: Trying to get all samples from an audio file on disk into memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to get all samples from an audio file on disk into memory


  • Subject: Re: Trying to get all samples from an audio file on disk into memory
  • From: Paul Davis <email@hidden>
  • Date: Sat, 28 Feb 2015 21:17:00 -0600

Then what is the problem?

      typedef float Sample;

      Sample* buf = new Sample[sizeof(Sample) * file_length]; /* C++ */
      buf = (Sample*) malloc (sizeof (Sample) * file_length); /* C */

either you want to use some new-fangled language and don't know how to do heap allocation or do you don't understand how to get the number of samples in the file?

On Sat, Feb 28, 2015 at 9:12 PM, Patrick J. Collins <email@hidden> wrote:
> I have audio files larger than 100GB. Do you think you can fit those into memory?

This DSP tool is for speech analysis..  Worst case scenario we're
talking about a minute or two or uncompressed audio, so yes memory should not
be an issue.

Patrick J. Collins
http://collinatorstudios.com

 _______________________________________________
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

  • Follow-Ups:
    • Re: Trying to get all samples from an audio file on disk into memory
      • From: "Patrick J. Collins" <email@hidden>
References: 
 >Trying to get all samples from an audio file on disk into memory (From: "Patrick J. Collins" <email@hidden>)
 >Re: Trying to get all samples from an audio file on disk into memory (From: Paul Davis <email@hidden>)
 >Re: Trying to get all samples from an audio file on disk into memory (From: "Patrick J. Collins" <email@hidden>)

  • Prev by Date: Re: Trying to get all samples from an audio file on disk into memory
  • Next by Date: Re: Trying to get all samples from an audio file on disk into memory
  • Previous by thread: Re: Trying to get all samples from an audio file on disk into memory
  • Next by thread: Re: Trying to get all samples from an audio file on disk into memory
  • Index(es):
    • Date
    • Thread