我使用AVAudioPlayer播放.caf文件。我的问题是:对于我的目的而言,声音还不够大。由于iPhone的铃声响得多,我想知道如何保存此音量。
我已经尝试操纵.caf文件,但没有真正的成功。有任何想法吗?

到目前为止,我使用的代码:

    AVAudioPlayer *newPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL: url error: nil];
self.appSoundPlayer = newPlayer;
[newPlayer release];
[appSoundPlayer prepareToPlay];
[appSoundPlayer setVolume: 0.8];
[appSoundPlayer setDelegate: self];
    [appSoundPlayer play];

编辑:
[appSoundPlayer setVolume: 1.0];

谢谢
马丁

最佳答案

您可以始终将音量设置为实际最大音量,例如:

[appSoundPlayer setVolume: 1.0];

除此之外,您可能必须编辑文件本身。

10-05 20:03