|
|
|
@ -110,27 +110,27 @@ void KOggEnc::start( TQString title, TQString artist, TQString album, TQString t
|
|
|
|
|
srand( time(NULL) );
|
|
|
|
|
ogg_stream_init( &os, rand() );
|
|
|
|
|
if ( !title.isNull() ) {
|
|
|
|
|
tag = qstrdup( title.utf8() );
|
|
|
|
|
tag = tqstrdup( title.utf8() );
|
|
|
|
|
vorbis_comment_add_tag( &vc, "title", tag );
|
|
|
|
|
delete [] tag;
|
|
|
|
|
}
|
|
|
|
|
if ( !artist.isNull() ) {
|
|
|
|
|
tag = qstrdup( artist.utf8() );
|
|
|
|
|
tag = tqstrdup( artist.utf8() );
|
|
|
|
|
vorbis_comment_add_tag( &vc, "artist", tag );
|
|
|
|
|
delete [] tag;
|
|
|
|
|
}
|
|
|
|
|
if ( !album.isNull() ) {
|
|
|
|
|
tag = qstrdup( album.utf8() );
|
|
|
|
|
tag = tqstrdup( album.utf8() );
|
|
|
|
|
vorbis_comment_add_tag( &vc, "album", tag );
|
|
|
|
|
delete [] tag;
|
|
|
|
|
}
|
|
|
|
|
if ( !tracknumber.isNull() ) {
|
|
|
|
|
tag = qstrdup( tracknumber.utf8() );
|
|
|
|
|
tag = tqstrdup( tracknumber.utf8() );
|
|
|
|
|
vorbis_comment_add_tag( &vc, "tracknumber", tag );
|
|
|
|
|
delete [] tag;
|
|
|
|
|
}
|
|
|
|
|
if ( !genre.isNull() ) {
|
|
|
|
|
tag = qstrdup( genre.utf8() );
|
|
|
|
|
tag = tqstrdup( genre.utf8() );
|
|
|
|
|
vorbis_comment_add_tag( &vc, "genre", tag );
|
|
|
|
|
delete [] tag;
|
|
|
|
|
}
|
|
|
|
|