Displaying 5 results from an estimated 5 matches for "primag".
Did you mean:
prima
2015 Jun 14
2
Sound glitch when using libvorbisfile and libao
Hi Gunter,
I think this problem started happening when I upgraded from Debian Wheezy
to Debian Jessie. If nothing looks amiss in my code, it probably is a sound
driver problem. But since it works 100% of the time in ogg123, I feel I
must have missed some corner case.
My audio driver is almost always active. I usually have my music player
going in the background when I do my testing. The problem
2015 Jun 27
0
Sound glitch when using libvorbisfile and libao
...took me a
while, but I eventually figured it out.
What I needed to do was fill the buffer with more data before handing it
off to ao_play. It requires lots of bookkeeping, pointer arithmetic, and a
sufficiently large buffer.
First, the bigger buffer. I just pulled this code from ogg123:
#define PRIMAGIC (2*2*2*2*3*3*3*5*7)
#define AUDIO_CHUNK_SIZE ((16384 + PRIMAGIC - 1)/ PRIMAGIC * PRIMAGIC)
char convbuffer[AUDIO_CHUNK_SIZE];
const int convsize = AUDIO_CHUNK_SIZE;
The loop is now more convoluted. Here's the old one, for reference:
long bytes_read = 0;
do {
bytes_read = decode_vorbisfi...
2002 Dec 14
4
scan() with "what"
...#39;d like to read into R. The
read.csv() function seems to be a bit inefficient to deal with it, and I
remember that using scan() with "what" options is better.
However I'm unable to understand how to use it. The first few lines of
the data look like:
USAGE,MILEAGE,SEX,EXCESS,NCD,PRIMAGE,MINAGE,DRIVERS,DISTRICT,CARGROUP,CAR_AGE,WSCLMS,ADCLMS,FTCLMS,PDCLMS,PICLMS,ADINCUR,PDINCUR,WSINCUR,FTINCUR,PIINCUR,RECORD,DAYS,MINAGEN,PRIMAGEN
SC,7000,M,100,4,59,25,3,4,7,6,0,0,0,,,0,,0,0,,1,85,25,59
SC,7000,M,100,4,59,59,2,4,13,5,0,0,0,,,0,,0,0,,2,278,59,59
SC,7000,M,100,4,60,60,2,4,13,5,...
2003 Mar 10
1
rpart returning only 1 node
Hi,
This may actually be a theoretical question.
When I tried to do the following:
##########################################################
> colnames(rating.adclms)
[1] "usage" "mileage" "sex" "excess" "ncd"
[6] "primage" "minage" "drivers" "district" "cargroup"
[11] "car.age" "adclms" "days"
> rating.r1 <- rpart(adclms ~ ., data = rating.adclms,
+ method = "class")
> rating.r1
n...
2003 Apr 11
4
Can I improve the efficiency of my scan() command?
...##
> rating <- scan("../Data/Rating.csv",
+ what = list(
+ usage = "",
+ mileage = 0,
+ sex = "",
+ excess = "",
+ ncd = "",
+ primage = "",
+ minage = "",
+ drivers = "",
+ district = "",
+ cargroup = "",
+ car.age = 0,
+ wsclms = "",
+ adclms = "&...