[Pkg-vala-maintainers] Bug#658761: /usr/share/vala-0.12/vapi/sdl.vapi is severely broken when it comes to audio playback

Alexander Kurtz kurtz.alex at googlemail.com
Sun Feb 5 21:41:31 UTC 2012


Package: valac-0.12
Version: 0.12.1-2
Severity: minor

Hi,

Vala's SDL bindings are severely broken when it comes to audio playback.
The official documentation[0] says that you need to create a
SDL_AudioSpec and then pass that to SDL_OpenAudio() in order to
establish an audio output. However, this fails at the first step:

	$ cat Test.vala 
	public static void main(){
		var foo = new SDL.AudioSpec();
	}
	$ valac-0.12 --pkg=sdl Test.vala 
	Test.vala:2.12-2.30: error: `SDL.AudioSpec' does not have a default constructor
		var foo = new SDL.AudioSpec();
			  ^^^^^^^^^^^^^^^^^^^
	Compilation failed: 1 error(s), 0 warning(s)
	$

Since you can't create an SDL_AudioSpec, you can't use SDL for audio
output from Vala programs at all.

Best regards

Alexander Kurtz

[0] http://www.libsdl.org/intro.en/usingsound.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test.vala
Type: text/x-vala
Size: 270 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vala-maintainers/attachments/20120205/c2e585de/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-vala-maintainers/attachments/20120205/c2e585de/attachment.pgp>


More information about the Pkg-vala-maintainers mailing list