stuck on audio streams
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.