[MPlayer-dev-eng] [PATCH] Volume control for ao_macosx

Anders Johansson ajh at watri.org.au
Fri Jun 6 13:30:58 CEST 2003


Hi Dan,

What is wrong with downsampling of float (it works fine on PC). Is MAC
big or little endian? Is there a native volume control on MAC?

//Anders 

> Attached is a patch to add support for volume control to ao_macosx. A 
> patch largely similar to this one was rejected, but I ask you to 
> reconsider it.
> 
> It was rejected on the grounds that I had reused some code from the 
> volume control plugin. The amount of code reused is in the order of a 
> few lines (where I removed everything not strictly necessary), and 
> since I use the lowest possible layers in CoreAudio, the only way of 
> having it control volume would be to set the system wide volume, and 
> that's not an option.
> 
> Please apply this patch, I believe it's the only proper way to add 
> volume control to ao_macosx (in it's current incarnation) that doesn't 
> require a large amount of changes to the MPlayer core. If it were to be 
> handled by CoreAudio, it would require a total rewrite of the output 
> module to use higher level APIs - I plan to do that some time - but 
> until then, this is a fair compromise.
> 
> - Dan
> 


> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng


-- 
______________________________________________________________________
Anders Johansson   Room G09B      WATRI University of          .-_|\
Visiting  Research Associate      Western Australia           /     \
telephone:   +61 8 9380 8125      39 Stirling Highway         P_.-._/
home:       www.watri.org.au      Crawley WA 6009                  o
______________________________________________________________________






More information about the MPlayer-dev-eng mailing list