Skip to content

how to make sound from a file ,  #161

Description

@divineuniverse

Hi ,

i am new to prizzicato.js , and now i am learning about it ,
but i found that i cannot load up any sound from a file ,
( i am using laptop with chrome browser ) ,

var tSnd = new Pizzicato.Sound( './audio/sound.wav' );
tSnd.play();

may i know do i need to do sth in the setting or config or others ,
really many thanks for this help and reply ,

thanks ALL , : )

=== === ===

BTW , i hv also tried to pass an AudioObject into it , such as ,
var XX = new Audio();' XX.src = './audio/sound.wav'; XX.load();`

var tSnd = new Pizzicato.Sound( XX );
tSnd.play();
or
var tSnd = new Pizzicato.Sound( XX.src );
tSnd.play();

but these also NOT work ,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions