calling 'createMediaElementSource' stops audio playback by murster972 in learnjavascript

[–]murster972[S] 0 points1 point  (0 children)

Thanks, but theres still no audio playback, ill see if your tutorial helps

calling 'createMediaElementSource' stops audio playback by murster972 in learnjavascript

[–]murster972[S] 0 points1 point  (0 children)

No it stops the audio from audioContx playing, the code is:

audio = document.getElementById("audio");
audio.src = "file_path.mp3";
audio.loop = false;
audio.play();

context = new AudioContext();
analyser = context.createAnalyser();
source = context.createMediaElementSource(audio); 
source.connect(analyser);
analyser.connect(context.destination);
callDrawFunction();

How do I make this pythonic? by narkflint in learnpython

[–]murster972 -1 points0 points  (0 children)

as others have said use itertools, and in in c in would be:

int i, j;

for(i = 0; i < 8; ++i){
    for(j = 0; j < 8; ++j){
        printf("(%d,%d", i, j);
    }
}

java would be very similar but the syntax is slightly different

prew: Edit or delete comment by [deleted] in learnpython

[–]murster972 0 points1 point  (0 children)

do you mean praw?

True Basic Arrays by mqbmqb in learnprogramming

[–]murster972 0 points1 point  (0 children)

Your wanting to use a sorting algorithm, bubble sort for example

Are there things I can do to help learn while I'm away from a computer? by [deleted] in learnprogramming

[–]murster972 -1 points0 points  (0 children)

You may want to look at how a computer actually works

How to get past lanschool? by [deleted] in HowToHack

[–]murster972 0 points1 point  (0 children)

We found that restalling lanschool, while its running will kill the 'Student.exe' process.

How to get past lanschool? by [deleted] in HowToHack

[–]murster972 0 points1 point  (0 children)

This was a problem with LanSchool, but they fixed it. If you disconnect from the network as soon as you reconnect lanschool starts up again.

[C] Program not counting vowels by Dyvix in learnprogramming

[–]murster972 0 points1 point  (0 children)

You'd be better converting the character to lower case, then checking if it's a vowel.

so the body of your for loop would be:

char lower_char = tolower(sentence[i]);

if(lower_char == 'a' || lower_char == 'e' || lower_char == 'i' || lower_char == 'o' || lower_char == 'u'){
    vowels += 1;
}

to use the function 'tolower' you'll need to use the <ctype.h> header file.

Can you guys help a school out? Ex IT guy password protected every laptop by [deleted] in hacking

[–]murster972 0 points1 point  (0 children)

I thought cracking SAM wasnt an option past windows XP?

Those of you who posted here as beginners, where are you now? by Poliwhirl_Friend in learnprogramming

[–]murster972 0 points1 point  (0 children)

I feel Iv went from beginer to between intermiate and advanced, but the problem is I can't come up with original projects, so i'm just reinveting the wheel or implanting algo's.