• 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
Using AudioPlayer class from SpeakHere sample code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using AudioPlayer class from SpeakHere sample code


  • Subject: Using AudioPlayer class from SpeakHere sample code
  • From: "Ignacio Enriquez" <email@hidden>
  • Date: Tue, 11 Nov 2008 16:01:04 +0900

Recently I have been trying to use AudioPlayer class from SpeakHere
(iphone sample code) with no 100% success.
I thought I was begging to understand CoreAudio but I have realized
that I am still a newbie newbie.

Well , I was trying to implement play pause resume stop fastforward and rewind.
I thought, in order to achieve that, using AudioPlayer methods would
be enough but "resume" is not doing well.
I think the reason is that I am not using a Controller like in
SpeakHere project.(I am directly using AudioPlayer Class)

So, I have some questions about this.

Can I use Controller class for managing AudioPlayer inside my
projects? (Controller is inside Classes folder of SpeakHere, but is
not added to the project. It says "for support purposes")
In case I use the Controller class instead of AudioViewController,
What is the role of a controlller like "Controller" class?
I suspect that is  changing the user interface and  send some king of
notifications so the app knows when properties are changed. Am I
correct? I would be thankful if I can get a further explanation.


This is part of the code I used to implement PauseResume button's action:

-(void)pushStartPause: (UIBarButtonItem *)sender{
if([player isRunning]){
self.playPauseButton.title = @"pause";  //the button
[player pause]; //player is a AudioPlayer instance
return
}
else{
self.playerPauseButton.title = @"resume";
[player resume];
return;
}
}

But once pauses it does not start again. It seems like is always
running.Hence never goes inside ELSE
Do I have to change kAudioQueueProperty_IsRunning manually?  Where
should I wrote AudioQueueSetProperty(...)? Does it have to be inside
the controller or could it be inside AudioPlayer Class for example.



Thanks In Advance.
Ignacio
 _______________________________________________
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: MIDI File support?
  • Next by Date: Information request on Iphone for playing pls files
  • Previous by thread: Re: MIDI File support?
  • Next by thread: Information request on Iphone for playing pls files
  • Index(es):
    • Date
    • Thread