About to start work on some sound output using/dev/dsp/, and having never used this before I would appreciate any help on a few questions...
Is the buffer size fixed? If so, does anybody have a figure for this on the '2x, else, how do you change it?
When i overflow the buffer, can I check this by checking the return value of write(), to see how many bytes were written? I.e, if i try to write 32bytes but only 24byte are free in the buffer, will 24bytes be written and the value 24 returned?
Oh, and while i'm here, to avoid starting another thread, can anybody tell me how to telnet to my GP2x from linux so I can check printf's etc, tried messing with the network options but didn't really know what i was doing.
Thanks,
Sam
Is the buffer size fixed? If so, does anybody have a figure for this on the '2x, else, how do you change it?
When i overflow the buffer, can I check this by checking the return value of write(), to see how many bytes were written? I.e, if i try to write 32bytes but only 24byte are free in the buffer, will 24bytes be written and the value 24 returned?
Oh, and while i'm here, to avoid starting another thread, can anybody tell me how to telnet to my GP2x from linux so I can check printf's etc, tried messing with the network options but didn't really know what i was doing.
Thanks,
Sam