OS X NSPasteBoard and Wave data
OS X NSPasteBoard and Wave data
- Subject: OS X NSPasteBoard and Wave data
- From: Charles Constant <email@hidden>
- Date: Wed, 09 Apr 2014 21:00:17 -0700
Hello all,
Does anyone have some tips on sending PCM audio to the clipboard, for use with other apps?
I'd like to be able to paste to as many other apps as possible, ideally without writing a file to disk. I've done a little research, and there doesn't seem to be any current standard to do so. This is my first large project using Cocoa/Objective C so I'm feeling a bit overwhelmed.
I'm currently creating a wav file in memory, passing it to create an instance of an NSSound, and putting that in NSPasteboard's generalPasteboard. I gather NSSound is rather limited though (I've read you can't even get at the samples, just use [sound play]???). And QTKit... deprecated (I see QTP7 wraps its clipboard audio in a movie).
Should I just write the wav to disk and put the file url on the clipboard? That seems overly complicated.
Maybe this is not worth the effort? I have a half dozen audio apps on my hard drive, and I can't seem to find anything other than Quicktime Pro 7 that can handle clipboard audio from anything else :(
I'd be very grateful if someone could share some of their knowledge. How do other people do this?
Charles
_______________________________________________
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