• 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: reading audiofile into floatbuffer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reading audiofile into floatbuffer


  • Subject: Re: reading audiofile into floatbuffer
  • From: stiwi kirch <email@hidden>
  • Date: Thu, 15 Jan 2004 14:05:55 +0100

Thanks Philippe,

but i still stuck with AudioConverterFillComplexBuffer. How do i have
to set up a AudioBufferList for the AudioConverterFillComplexBuffer
call if my AudioStreamBasicDescription target looks like this:

// WaveTable::printStreamDescription

Sample Rate: 44100.000000
Format ID: lpcm
Format Flags: 2B
Bytes per Packet: 4
Frames per Packet: 1
Bytes per Frame: 4
Channels per Frame: 2
Bits per Channel: 32

// WaveTable::readFileIntoMemory

BytesReturned: 233732
Packets: 58433


Do i need something like this?

AudioBufferList floatBuffer;

floatBuffer.mNumberBuffers = 2; // 2 because i need 2 mono float
buffers?
floatBuffer.mBuffers[0].mData = malloc(?); // how can i calculate the
memSize of one buffer?
floatBuffer.mBuffers[0].mNumberChannels = 1; // because it's one mono
channel?
floatBuffer.mBuffers[0].mDataByteSize = ?; // some size i don't know
how to calulate
floatBuffer.mBuffers[1].mData = malloc(?);
floatBuffer.mBuffers[1].mNumberChannels = 1;
floatBuffer.mBuffers[1].mDataByteSize = ?;


stiwi
_______________________________________________
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: reading audiofile into floatbuffer
      • From: Robert Grant <email@hidden>
References: 
 >reading audiofile into floatbuffer (From: stiwi <email@hidden>)

  • Prev by Date: Re: [genuine] Re: reading Midi from AU
  • Next by Date: finding out the MIDI channel when reading MIDI data
  • Previous by thread: Re: reading audiofile into floatbuffer
  • Next by thread: Re: reading audiofile into floatbuffer
  • Index(es):
    • Date
    • Thread