• 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
First sound is less loud than the others...?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

First sound is less loud than the others...?


  • Subject: First sound is less loud than the others...?
  • From: "Development@groove4u" <email@hidden>
  • Date: Mon, 25 Oct 2010 16:03:28 +0200

I am using code like this:

  CFURLRef fileURL = [self allocFullFileURL];
  NSError *err;
  [audioPlayer release];
  audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:(NSURL*)fileURL error:&err];
  [audioPlayer prepareToPlay];
  audioPlayer.delegate = self;
  [audioPlayer play];
  CFRelease(fileURL);


to play a file on an iphone. This works just fine, but when i, e.g., add this to a button action, the first sound is always "not as loud" as the others. Like if the audio system is waking up, and the ol' amplifier
needs to get warmed up... 

Is that a known issue? If so, is there an easy workaround? Just curious, as the above looks pretty darn simple, so there might be a trap i walked in, but in another part of my code, i use AudioUnits with a multichannel mixer, and i have the same behavior there... 

Tia

Frank
 _______________________________________________
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

  • Prev by Date: Re: Multichannel to Stereo in Logic
  • Next by Date: Input rendering
  • Previous by thread: Re: iOS 4.1: using AVAssetReader to stream from an audio file interrupts audio callback
  • Next by thread: Input rendering
  • Index(es):
    • Date
    • Thread