• 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
Re: Standard for audio on pasteboards?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Standard for audio on pasteboards?
      • From: Ev <email@hidden>
  • Prev by Date: Standard for audio on pasteboards?
  • Next by Date: can't compile SampleEffect & MultitapAU
  • Previous by thread: Standard for audio on pasteboards?
  • Next by thread: Re: Standard for audio on pasteboards?
  • Index(es):
    • Date
    • Thread