Hi,
I have a streaming input from a radio, I would like to add Bass or Treble to this audio data before to put it into my queuebuffer (which play the audio data)
I have a method to handle audio packets
PHP Code:
- (void)handleAudioPackets:(const void *)inInputData
numberBytes:(UInt32)inNumberBytes
numberPackets:(UInt32)inNumberPackets
packetDescriptions:(AudioStreamPacketDescription *)inPacketDescriptions;
{
....
AudioQueueBufferRef fillBuf = audioQueueBuffer[fillBufferIndex];
// Here I think I have to add Bass or Treble to inInputData
memcpy((char*)fillBuf->mAudioData + bytesFilled, (const char*)inInputData + packetOffset, packetSize);
....
}
The streaming flux is mp3 44100.
if somebody have an idea...
thx