• 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
playing mono files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

playing mono files


  • Subject: playing mono files
  • From: Stanko Juzbasic <email@hidden>
  • Date: Fri, 10 Oct 2003 19:39:41 +0200

Does anyone have experience how to make Core audio play mono files WITHOUT HAVING TO CONVERT THEM TO STEREO ?

err = AudioDeviceSetProperty (audio_data.device, NULL, 0, false, kAudioDevicePropertyStreamFormat,
sizeof (AudioStreamBasicDescription), &(audio_data.format)))

always returns an error if

audio_data.format.mChannelsPerFrame equals 1.

How to make a workaround this problem? If I hardcode the former parameter to be >= 2, than everything plays at double speed. Is there an easy way to simply read each of the samples from a file twice?



Stanko
_______________________________________________
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: playing mono files
      • From: Holger Hörich <email@hidden>
    • Re: playing mono files
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: MIDIPacketList info
  • Next by Date: AU programatic versus gui Control
  • Previous by thread: Re: AU version hex format
  • Next by thread: Re: playing mono files
  • Index(es):
    • Date
    • Thread