Re: Sound Level
Re: Sound Level
- Subject: Re: Sound Level
- From: Lorenzo <email@hidden>
- Date: Mon, 07 Apr 2003 23:14:10 +0200
Thank you Oleg. I am going to try that,
Best Regards
--
Lorenzo
email: email@hidden
>
From: Oleg Svirgstin <email@hidden>
>
Date: Mon, 07 Apr 2003 23:44:36 +0300
>
To: <email@hidden>
>
Cc: Lorenzo <email@hidden>
>
Subject: Re: Sound Level
>
>
Hi Lorenzo,
>
Hi all,
>
>
It is almost easy. Here is the recipe:
>
>
1. Use NSMovie to open and manipulate a sound file. I did not try it too
>
much, but seems it must directly operate with formats different from .mov
>
If it does not, there is a way to convert many formats to mov. (See
>
QuickTime references)
>
2. To open a sound file use "initWithURL:(NSURL*)url byReference:(BOOL)flag.
>
It is quite easy to turn a path into a URL, see NSURL in the manuals.
>
In the article about NSMovie you will find what this "byReference" means. By
>
the way, don't believe documentation: if you have to store a movie in an
>
archive, take care to make your NSMovie instance point to a real valid
>
"movie" file and to have that movie file at that path when you want to play
>
it back.
>
3. Sound control, play back rate and direction, copy/paste, adding extra
>
sound tracks, sound recording etc: that is all in QuickTime. By the way, it
>
is not so hard to get rudimentary basics of QuickTime, sufficient to learn
>
to play the sound back controlling its volume etc.
>
>
I finished writing my own xxSound. (What if these two letters that I use as
>
prefix for my classes will be considered as "secret information disclosure"
>
by my employee?).
>
>
I found that QuickTime is GREAT. It just works. (QuickTime itself: its Cocoa
>
wrappers are lame, though useful and quite useable)
>
>
However, to master it one must spend not hours, but months. :(
>
>
Probably, there will be a decent set of real QT wrappers in Cocoa one day, I
>
don't post a feature request or a bug report since there must be tons of
>
them on this subject already.
>
>
It is a great pleasure to reinvent a wheel, isn't it?
>
>
There may be some other ways using CoreAudio, but I did not get into it yet.
>
>
Just my 1/2 cent...
>
Best regards
>
Oleg
>
>
>
> From: Lorenzo <email@hidden>
>
> Date: Mon, 07 Apr 2003 14:46:46 +0200
>
> To: <email@hidden>
>
> Subject: Sound Level
>
>
>
> Hi, how to control the sound level of the Mac, and
>
> ho to control the sound level of my Cocoa application?
>
>
>
> NSSound is not the answer. So please, what?
>
>
>
> Best Regards
>
> --
>
> Lorenzo
>
> email: email@hidden
>
> _______________________________________________
>
> cocoa-dev mailing list | email@hidden
>
> Help/Unsubscribe/Archives:
>
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.