[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Protux-devel] Open Task
From: |
booker |
Subject: |
Re: [Protux-devel] Open Task |
Date: |
Mon, 30 Jun 2003 22:21:41 +0200 |
User-agent: |
KMail/1.5 |
Am Montag, 30. Juni 2003 08:48 schrieb Luciano Giordana:
> You dont need to go so far, I have a standard routine using libmustux
> (which makes it pretty simple) take a look (please reihard, save this
> example for libmustux documentation )
Ok
btw - no GlobalPropertiesDialog.cc in cvs:
...
...
else rm -f ".deps/GlobalProperties.Tpo"; exit 1; \
fi
make[3]: *** No rule to make target `GlobalPropertiesDialog.cc', needed by
`GlobalPropertiesDialog.o'. Stop.
make[3]: Leaving directory `/home/booker/cvs/mustux/protux/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/booker/cvs/mustux/protux/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/booker/cvs/mustux/protux'
make: *** [all] Error 2
address@hidden protux]$
greetings
Reinhard
>
> int busId=0; // or 1 or 2, and so on.. must be any valid busId.
> int channels = MustuxAudioDeviceMapper::STEREO;
> int rate=44100;
> int bitDepth = 16;
> if (MustuxAudioDeviceMapper::open_bus_out(busId, rate, bitDepth)<0)
> {
> // error
> }
> buf = MustuxAudioDeviceMapper::get_bus_out_transfer_buffer(busId,
> channels); bufSize =
> MustuxAudioDeviceMapper::get_bus_out_transfer_size(busId);
>
> while (!feof(file))
> {
> fread(buf,1,bufsize,file);
> int r=MustuxAudioDeviceMapper::bus_out_transfer(bus);
> if (r==MustuxAudioDeviceMapper::ERROR_UNDERRUN)
> {
> // Error...
> }
> }
>
> MustuxAudioDeviceMapper::close_bus_out(busId);
>
> any doubts, please feel free to ask
>
> On Sunday 29 June 2003 03:41 pm, rsff wrote:
> > Martin,
> >
> > have a look at the ALSA playback programs. It should give you a good
> > idea/start on the playing engine. Just a thought.
> >
> >
> > Fabio.
Re: [Protux-devel] Open Task, Martin Herren, 2003/06/29
Re: [Protux-devel] Open Task, Luciano Giordana, 2003/06/30
Re: [Protux-devel] Open Task, Martin Herren, 2003/06/30