how to record audio from speaker on ios

2012-10-16 Thread WUQWE

I want to record video from iPad screen by AVCaptureSession  AVAssetWriter.  
now,i could capture video(include microphone sound)。but,
The background music will stop when begin record video and  the record will 
stop when play sound effect.

My goal is capture the video include microphone sound , background music and  
sound sfx.

How to fix the question?

Thanks.



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

nswindow close button for my splitview does not display cross while mouse hover

2012-10-16 Thread Sanjay Arora
Hi,
I am creating a  new Button like the window's close button to attach it to my  
splitview to give is same close action.

The problem is the button does not displays cross while I the hover mouse over 
it.

NSButton *closeControl = [NSWindow standardWindowButton:NSWindowCloseButton 
forStyleMask:[myNSWindow styleMask]];
[myNSView addSubview: closeControl];

Setting it as highlight does not help, it showsup the pressed state. Is there a 
setting that I am missing?

Regards
Sanjay

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: nswindow close button for my splitview does not display cross while mouse hover

2012-10-16 Thread Stephane Sudre
On Tue, Oct 16, 2012 at 9:35 AM, Sanjay Arora saar...@quark.com wrote:
 Hi,
 I am creating a  new Button like the window's close button to attach it to my 
  splitview to give is same close action.

 The problem is the button does not displays cross while I the hover mouse 
 over it.

 NSButton *closeControl = [NSWindow standardWindowButton:NSWindowCloseButton 
 forStyleMask:[myNSWindow styleMask]];
 [myNSView addSubview: closeControl];

 Setting it as highlight does not help, it showsup the pressed state. Is there 
 a setting that I am missing?

It's a bug/limitation of the AppKit since this API was introduced.
There's no real easy way to get the hovered state.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: how to record audio from speaker on ios

2012-10-16 Thread Kyle Sluder
On Mon, Oct 15, 2012, at 11:41 PM, WUQWE wrote:
 
 I want to record video from iPad screen by AVCaptureSession 
 AVAssetWriter.  now,i could capture video(include microphone sound)。but,
 The background music will stop when begin record video and  the record
 will stop when play sound effect.
 
 My goal is capture the video include microphone sound , background music
 and  sound sfx.
 
 How to fix the question?

Nope. You cannot do it.

--Kyle Sluder

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: nswindow close button for my splitview does not display cross while mouse hover

2012-10-16 Thread Kyle Sluder
On Tue, Oct 16, 2012, at 12:35 AM, Sanjay Arora wrote:
 Hi,
 I am creating a  new Button like the window's close button to attach it
 to my  splitview to give is same close action.
 
 The problem is the button does not displays cross while I the hover mouse
 over it.
 
 NSButton *closeControl = [NSWindow
 standardWindowButton:NSWindowCloseButton forStyleMask:[myNSWindow
 styleMask]];
 [myNSView addSubview: closeControl];
 
 Setting it as highlight does not help, it showsup the pressed state. Is
 there a setting that I am missing?

You're probably better off creating your own similar-looking button.

But before you do, try installing an NSTrackingArea that covers your
button and sending its cell -mouseEntered: and -mouseExited: when the
mouse enters/exits the tracking area. There's no guarantee that this is
how AppKit implements this functionality, but it's worth a shot.

You might also consider filing a bug asking for a standard way to tell
an NSCell that it should draw as if the mouse is over it (rather than
just informing it that the mouse has entered/exited and letting it make
its own decision). As you noticed, highlighted does not refer to this
state.

--Kyle Sluder
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: nswindow close button for my splitview does not display cross while mouse hover

2012-10-16 Thread Jens Alfke

On Oct 16, 2012, at 12:35 AM, Sanjay Arora saar...@quark.com wrote:

 I am creating a  new Button like the window's close button to attach it to my 
  splitview to give is same close action.
 The problem is the button does not displays cross while I the hover mouse 
 over it.
 NSButton *closeControl = [NSWindow standardWindowButton:NSWindowCloseButton 
 forStyleMask:[myNSWindow styleMask]];

Don’t use that button for something nonstandard like this. It won’t work 
correctly, and it’s incorrect UI. If you need a close-this button in a window’s 
content, use the gray-X-in-a-circle appearance for it (there’s a standard 
template image for it, easily settable in IB.)

—Jens
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: how to record audio from speaker on ios

2012-10-16 Thread Jens Alfke

On Oct 15, 2012, at 11:41 PM, WUQWE wuminghui...@163.com wrote:

 I want to record video from iPad screen by AVCaptureSession  AVAssetWriter.  
 now,i could capture video(include microphone sound)。but,
 The background music will stop when begin record video and  the record will 
 stop when play sound effect.
 My goal is capture the video include microphone sound , background music and  
 sound sfx.

You want to play music and record the music as it was picked up by the mic? 
That will sound terrible. Just record without the music and then mix the music 
track into the recording afterwards with full fidelity.

—Jens
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: how to record audio from speaker on ios

2012-10-16 Thread Kyle Sluder
On Oct 16, 2012, at 8:45 AM, Jens Alfke j...@mooseyard.com wrote:

 
 On Oct 15, 2012, at 11:41 PM, WUQWE wuminghui...@163.com wrote:
 
 I want to record video from iPad screen by AVCaptureSession  AVAssetWriter. 
  now,i could capture video(include microphone sound)。but,
 The background music will stop when begin record video and  the record will 
 stop when play sound effect.
 My goal is capture the video include microphone sound , background music and 
  sound sfx.
 
 You want to play music and record the music as it was picked up by the mic? 
 That will sound terrible. Just record without the music and then mix the 
 music track into the recording afterwards with full fidelity.

Oh, I misread what OP wanted to do.

Yes, if you have the source audio and video already captured, mix it together 
using an AVComposition.

--Kyle Sluder
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Cocoa-dev Digest, Vol 9, Issue 724

2012-10-16 Thread WUQWE

在 2012-10-17,上午3:00,cocoa-dev-requ...@lists.apple.com 写道:

 On Oct 16, 2012, at 8:45 AM, Jens Alfke j...@mooseyard.com wrote:
 
 
 On Oct 15, 2012, at 11:41 PM, WUQWE wuminghui...@163.com wrote:
 
 I want to record video from iPad screen by AVCaptureSession  
 AVAssetWriter.  now,i could capture video(include microphone sound)。but,
 The background music will stop when begin record video and  the record will 
 stop when play sound effect.
 My goal is capture the video include microphone sound , background music 
 and  sound sfx.
 
 You want to play music and record the music as it was picked up by the mic? 
 That will sound terrible. Just record without the music and then mix the 
 music track into the recording afterwards with full fidelity.
 
 Oh, I misread what OP wanted to do.
 
 Yes, if you have the source audio and video already captured, mix it together 
 using an AVComposition.


Use captureSession get the video and use AVAudioRecord get the audio. mix it.

Thanks

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

GameCenter difficulties

2012-10-16 Thread Rick Mann
I had a half-finished Game Center app and a half-dozen sandbox IDs. After 
resetting my passwords (since I had forgotten them), and trying to run under 
iOS 6 and Xcode 4.5, I can't get the sim and a phone to connect to each other. 
Each is logged into the sandbox under a different test Apple ID. Each sees the 
other as a friend, but when I try to invite one, it immediately says Failed 
under that player's slot, and then all three slots change to show Auto-match.

I don't see anything logged, and I'm fairly puzzled. Am I overlooking something 
obvious?

Thanks,


-- 
Rick




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com