• 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
stuck on audio streams
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stuck on audio streams


  • Subject: stuck on audio streams
  • From: "Asher Vander Heiden" <email@hidden>
  • Date: Wed, 14 Jan 2004 22:29:32 +1100

Hey all,

I've been attempting to work with the audio toolbox in order to get audio files loading so I can look at the audio stream.

Here is my attempt after I have loaded a file into destFSRef:

AudioFileID outAudioFile;
SInt8 inPermissions;
inPermissions = 0;

AudioFileOpen (
&destFSRef,//const FSRef *inFileRef,
inPermissions,
0,//UInt32 inFlags,
&outAudioFile);

float outBuffer[300];
UInt32 ioNumBytes = 10;

AudioFileReadBytes(
outAudioFile,//AudioFileID inAudioFile,
true,//Boolean inUseCache,
101,//SInt64 inStartingByte,
&ioNumBytes,
&outBuffer
);

NSString *str;
UInt32 i;
for (i = 0; i < 10; i++)
{
str = [NSString stringWithFormat:@"%g,",outBuffer[i]];
}
[uiAudioFileNowPlayingName setStringValue:str];



I would greatly appreciate it if someone could tell me what I am doing wrong.

Thank you for your time....

_________________________________________________________________
Protect your inbox from harmful viruses with new ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp
_______________________________________________
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: stuck on audio streams
      • From: William Stewart <email@hidden>
  • Prev by Date: Input AudioUnit?
  • Next by Date: can you replicate this Jack/iTunes/SoundStudio behaviour?
  • Previous by thread: Re: Input AudioUnit?
  • Next by thread: Re: stuck on audio streams
  • Index(es):
    • Date
    • Thread