Re: Standard for audio on pasteboards?
Re: Standard for audio on pasteboards?
- Subject: Re: Standard for audio on pasteboards?
- From: Steven Spencer <email@hidden>
- Date: Wed, 19 Nov 2003 10:04:24 +0000
NSSound will handle audio data on the paste board for the following sound types :
The NSSound class provides a simple interface for loading and playing AIFF, WAV, and NeXT b.sndb files. NSSound supports 16-bit, mono and stereo, 44.1KHz and 22.05KHz data.
b initWithPasteboard:
+ canInitWithPasteboard:
+ soundUnfilteredPasteboardTypes
b writeToPasteboard:
- Steve S.
On Wednesday, November 19, 2003, at 07:02AM, Ev <email@hidden> wrote:
>
Does anyone have any knowledge of a standard for getting and setting
>
audio data to the pasteboard?
>
>
If *NOT*, I have a submission:
>
>
some type (i hope defined by Apple, some NSAudioPboardType or
>
something) that's a string as expected
>
>
data: a block of floating point numbers. the first float is the sample
>
rate, then the remaining floats are the audio data
>
>
Pro:
>
1. just a simple block of floating point numbers, 4 bytes a piece. No
>
struct or typedef needed.
>
2. represents any bit depth for pasting into or getting from (16-bit
>
source? 24-bit destination? no problem.)
>
3. number of samples is defined by the size of the data block (as
>
floats) - 1
>
>
Con:
>
1. need a way to determine number of channels? number of separate
>
NSData blocks??
>
>
Anyone have any additions, suggestions, or solutions?
>
If this could be an open idea, i'd love it - we'd all be able to cut &
>
paste data between our apps (& make files to the Finder)...
>
>
-ev
>
_______________________________________________
>
coreaudio-api mailing list | email@hidden
>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.