Home
last modified time | relevance | path

Searched refs:psong (Results 1 – 25 of 27) sorted by relevance

12

/dports/net/minidlna/minidlna-4f6a473/tagutils/
H A Dtagutils.c171 MAYBEFREE(psong->path); in freetags()
172 MAYBEFREE(psong->image); in freetags()
173 MAYBEFREE(psong->title); in freetags()
183 MAYBEFREE(psong->mime); in freetags()
218 (psong->contributor[ROLE_BAND] || psong->contributor[ROLE_CONDUCTOR])) in _make_composite_tags()
231 strcat(psong->contributor[ROLE_ARTIST], psong->contributor[ROLE_BAND]); in _make_composite_tags()
233 if(psong->contributor[ROLE_BAND] && psong->contributor[ROLE_CONDUCTOR]) in _make_composite_tags()
242 if(!psong->title) in _make_composite_tags()
245 psong->title = strdup(psong->basename); in _make_composite_tags()
285 psong->type = type; in readtags()
[all …]
H A Dtagutils-aac.c159 if((psong->image = malloc(psong->image_size))) in _get_aactags()
160 memcpy(psong->image, current_data+16, psong->image_size); in _get_aactags()
314 psong->bitrate = 0; in _get_aacfileinfo()
375 psong->bitrate = atom_length * 1000 / psong->song_length / 128; in _get_aacfileinfo()
378 if((psong->bitrate < 16000) && (psong->song_length > 1000)) in _get_aacfileinfo()
380 psong->bitrate = (file_size * 8) / (psong->song_length / 1000); in _get_aacfileinfo()
389 if( psong->samplerate < 8000 || psong->samplerate > 48000 ) in _get_aacfileinfo()
396 if( psong->channels <= 2 && psong->bitrate <= 320000 ) in _get_aacfileinfo()
398 else if( psong->channels <= 2 && psong->bitrate <= 576000 ) in _get_aacfileinfo()
400 else if( psong->channels <= 6 && psong->bitrate <= 1440000 ) in _get_aacfileinfo()
[all …]
H A Dtagutils-plist.c66 if(!psong) in start_plist()
70 psong->is_plist = 1; in start_plist()
71 psong->path = strdup(path); in start_plist()
72 psong->type = type; in start_plist()
75 psong->basename = fname ? fname + 1 : psong->path; in start_plist()
77 psong->title = strdup(psong->basename); in start_plist()
83 if(!psong->time_modified) in start_plist()
146 if(!psong->track || !p++) in _m3u_pls_next_track()
148 _trackno = psong->track; in _m3u_pls_next_track()
151 psong->track = ++_trackno; in _m3u_pls_next_track()
[all …]
H A Dtagutils-dsf.c175 psong->compilation = 1; in _get_dsftags()
189 psong->image_size = image_size; in _get_dsftags()
214 psong->title = (char*)utf8_text; in _get_dsftags()
251 if (psong->genre) in _get_dsftags()
253 if (!strlen(psong->genre)) in _get_dsftags()
260 genre = atoi(psong->genre); in _get_dsftags()
263 else if ((psong->genre[0] == '(') && (isdigit(psong->genre[1]))) in _get_dsftags()
273 free(psong->genre); in _get_dsftags()
344 free(psong->comment); in _get_dsftags()
410 psong->samplesize = bitpersample; in _get_dsffileinfo()
[all …]
H A Dtagutils-pcm.c25 _get_pcmfileinfo(char *filename, struct song_metadata *psong) in _get_pcmfileinfo() argument
36 psong->file_size = file.st_size; in _get_pcmfileinfo()
37 psong->bitrate = 1411200; in _get_pcmfileinfo()
38 psong->samplerate = 44100; in _get_pcmfileinfo()
39 psong->channels = 2; in _get_pcmfileinfo()
40 sec = psong->file_size / (psong->bitrate / 8); in _get_pcmfileinfo()
41 ms = ((psong->file_size % (psong->bitrate / 8)) * 1000) / (psong->bitrate / 8); in _get_pcmfileinfo()
42 psong->song_length = (sec * 1000) + ms; in _get_pcmfileinfo()
43 psong->lossless = 1; in _get_pcmfileinfo()
45 xasprintf(&(psong->mime), "audio/L16;rate=%d;channels=%d", psong->samplerate, psong->channels); in _get_pcmfileinfo()
[all …]
H A Dtagutils-mp3.c75 psong->compilation = 1; in _get_mp3tags()
151 if(psong->genre) in _get_mp3tags()
163 else if((psong->genre[0] == '(') && (isdigit(psong->genre[1]))) in _get_mp3tags()
173 free(psong->genre); in _get_mp3tags()
244 free(psong->comment); in _get_mp3tags()
714 psong->audio_size -= 128; in _get_mp3fileinfo()
726 psong->vbr_scale = -1; in _get_mp3fileinfo()
733 psong->vbr_scale = 78; in _get_mp3fileinfo()
753 if(!psong->song_length) in _get_mp3fileinfo()
759 psong->vbr_scale = 78; in _get_mp3fileinfo()
[all …]
H A Dtagutils-asf.c211 if (!psong->max_bitrate) in _asf_read_audio_stream()
212 psong->max_bitrate = psong->bitrate; in _asf_read_audio_stream()
244 if (!psong->max_bitrate) in _asf_read_media_stream()
245 psong->max_bitrate = psong->bitrate; in _asf_read_media_stream()
532 psong->vbr_scale = -1; in _get_asffileinfo()
576 psong->max_bitrate = psong->bitrate; in _get_asffileinfo()
643 psong->year = atoi(buf); in _get_asffileinfo()
659 psong->image = _asf_load_picture(fp, ValueLength, psong->image, &psong->image_size); in _get_asffileinfo()
670 psong->vbr_scale = 0; in _get_asffileinfo()
695 if(psong->song_length) in _get_asffileinfo()
[all …]
H A Dtagutils-flc.c24 _get_flctags(char *filename, struct song_metadata *psong) in _get_flctags() argument
65 psong->song_length = (sec * 1000) + ms; in _get_flctags()
66 psong->bitrate = (((uint64_t)(psong->file_size) * 1000) / (psong->song_length / 8)); in _get_flctags()
68 psong->channels = block->data.stream_info.channels; in _get_flctags()
74 vc_scan(psong, in _get_flctags()
81 if (psong->image) { in _get_flctags()
85 psong->image_size = block->data.picture.data_length; in _get_flctags()
86 if((psong->image = malloc(psong->image_size))) in _get_flctags()
87 memcpy(psong->image, block->data.picture.data, psong->image_size); in _get_flctags()
109 psong->lossless = 1; in _get_flcfileinfo()
[all …]
H A Dtagutils-wav.c103 if(block_len > psong->file_size) in _get_wavtags()
176 m = &(psong->title); in _get_wavtags()
179 m = &(psong->album); in _get_wavtags()
182 m = &(psong->genre); in _get_wavtags()
184 m = &(psong->comment); in _get_wavtags()
193 psong->track = atoi(p + 8); in _get_wavtags()
196 psong->year = atoi(p + 8); in _get_wavtags()
232 psong->bitrate = bit_rate; in _get_wavtags()
233 psong->samplerate = sample_rate; in _get_wavtags()
234 psong->channels = channel_count; in _get_wavtags()
[all …]
H A Dtagutils-misc.c200 len, comment, psong->path); in vc_scan()
215 psong->album = strdup(strbuf + 6); in vc_scan()
238 psong->title = strdup(strbuf + 6); in vc_scan()
242 psong->track = atoi(strbuf + 12); in vc_scan()
246 psong->disc = atoi(strbuf + 11); in vc_scan()
251 psong->genre = strdup(strbuf + 6); in vc_scan()
262 psong->year = atoi(strbuf + 5 + 6); in vc_scan()
268 psong->year = atoi(strbuf + 5); in vc_scan()
274 psong->comment = strdup(strbuf + 8); in vc_scan()
278 psong->musicbrainz_albumid = strdup(strbuf + 20); in vc_scan()
[all …]
H A Dtagutils-ogg.c84 struct song_metadata *psong) in _ogg_vorbis_process() argument
114 psong->samplerate = inf->vi.rate; in _ogg_vorbis_process()
115 psong->channels = inf->vi.channels; in _ogg_vorbis_process()
121 psong->bitrate = inf->vi.bitrate_nominal / 1000; in _ogg_vorbis_process()
161 psong->bitrate = upper_rate + lower_rate; in _ogg_vorbis_process()
201 if(psong != NULL) in _ogg_vorbis_end()
203 if(psong->bitrate <= 0) in _ogg_vorbis_end()
205 psong->bitrate = bitrate * 1000; in _ogg_vorbis_end()
207 psong->song_length = time * 1000; in _ogg_vorbis_end()
509 p->process_page(p, &page, psong); in _get_oggfileinfo()
[all …]
H A Dtagutils.h116 extern void make_composite_tags(struct song_metadata *psong);
117 extern int readtags(char *path, struct song_metadata *psong, struct stat *stat, char *lang, char *t…
118 extern void freetags(struct song_metadata *psong);
120 extern int start_plist(const char *path, struct song_metadata *psong, struct stat *stat, char *lang…
121 extern int next_plist_track(struct song_metadata *psong, struct stat *stat, char *lang, char *type);
H A Dtagutils-dff.c40 _get_dfffileinfo(char *file, struct song_metadata *psong) in _get_dfffileinfo() argument
154 psong->samplerate = samplerate; in _get_dfffileinfo()
164 psong->channels = channels; in _get_dfffileinfo()
199 psong->bitrate = channels * samplerate * 1; in _get_dfffileinfo()
222psong->song_length = (int)((double)dsdsdckDataSize / (double)samplerate / (double)channels * 8 * 1… in _get_dfffileinfo()
248 psong->song_length = numFrames / frameRate * 1000; in _get_dfffileinfo()
340 psong->contributor[ROLE_ARTIST] = strdup((char*)&arttext[0]); in _get_dfffileinfo()
355 psong->title = strdup((char*)&titletext[0]); in _get_dfffileinfo()
397 xasprintf(&(psong->dlna_pn), "DFF"); in _get_dfffileinfo()
H A Dtagutils-dsf.h22 static int _get_dsffileinfo(char *file, struct song_metadata *psong);
23 static int _get_dsftags(char *file, struct song_metadata *psong);
H A Dtagutils-flc.h22 static int _get_flcfileinfo(char *file, struct song_metadata *psong);
23 static int _get_flctags(char *file, struct song_metadata *psong);
H A Dtagutils-wav.h22 static int _get_wavfileinfo(char *file, struct song_metadata *psong);
23 static int _get_wavtags(char *file, struct song_metadata *psong);
H A Dtagutils-aac.h23 static int _get_aactags(char *file, struct song_metadata *psong);
24 static int _get_aacfileinfo(char *file, struct song_metadata *psong);
H A Dtagutils-mp3.h45 static int _get_mp3tags(char *file, struct song_metadata *psong);
46 static int _get_mp3fileinfo(char *file, struct song_metadata *psong);
H A Dtagutils-ogg.h23 static int _get_oggfileinfo(char *filename, struct song_metadata *psong);
H A Dtagutils-pcm.h21 static int _get_pcmfileinfo(char *file, struct song_metadata *psong);
/dports/audio/libmodplug/libmodplug-0.8.9.0/src/
H A Dload_dsm.cpp89 DSMSONG *psong; in ReadDSM() local
100 m_nChannels = psong->numtrk; in ReadDSM()
103 m_nSamples = psong->numsmp; in ReadDSM()
105 m_nDefaultSpeed = psong->speed; in ReadDSM()
106 m_nDefaultTempo = psong->bpm; in ReadDSM()
107 m_nDefaultGlobalVolume = psong->globalvol << 2; in ReadDSM()
109 m_nSongPreAmp = psong->mastervol & 0x7F; in ReadDSM()
112 Order[iOrd] = (BYTE)((iOrd < psong->numord) ? psong->orders[iOrd] : 0xFF); in ReadDSM()
117 if (psong->panpos[iPan] <= 0x80) in ReadDSM()
119 ChnSettings[iPan].nPan = psong->panpos[iPan] << 1; in ReadDSM()
[all …]
/dports/audio/sdl2_mixer/SDL2_mixer-2.0.4/external/libmodplug-0.8.9.0/src/
H A Dload_dsm.cpp89 DSMSONG *psong;
100 m_nChannels = psong->numtrk;
103 m_nSamples = psong->numsmp;
105 m_nDefaultSpeed = psong->speed;
106 m_nDefaultTempo = psong->bpm;
107 m_nDefaultGlobalVolume = psong->globalvol << 2;
109 m_nSongPreAmp = psong->mastervol & 0x7F;
112 Order[iOrd] = (BYTE)((iOrd < psong->numord) ? psong->orders[iOrd] : 0xFF);
117 if (psong->panpos[iPan] <= 0x80)
119 ChnSettings[iPan].nPan = psong->panpos[iPan] << 1;
[all …]
/dports/multimedia/quodlibet/quodlibet-4.3.0/tests/
H A Dtest_plugins___init__.py18 psong = AudioFile({ variable in TSongWrapper
24 pwrap = SongWrapper(psong)
79 self.failUnlessEqual(self.pwrap.realkeys(), self.psong.realkeys())
84 self.pwrap.can_change(key), self.psong.can_change(key))
92 self.failUnlessEqual(self.pwrap.list(key), self.psong.list(key))
95 self.failUnlessEqual(self.pwrap.keys(), self.psong.keys())
97 list(self.pwrap.values()), list(self.psong.values()))
98 self.failUnlessEqual(self.pwrap.items(), self.psong.items())
126 self.failUnlessEqual(self.psong.bookmarks, self.pwrap.bookmarks)
128 self.failUnlessEqual(self.psong["~bookmark"], "0:43 another mark")
[all …]
/dports/sysutils/conky/conky-1.12.2/src/
H A Daudacious.cc129 gchar *psong, *pfilename; in work() local
130 psong = nullptr; in work()
150 psong = audacious_remote_get_playlist_title(session, tmp.playlist_position); in work()
151 if (psong) { in work()
152 tmp.title = psong; in work()
153 g_free(psong); in work()
/dports/sysutils/conky-awesome/conky-1.12.2/src/
H A Daudacious.cc129 gchar *psong, *pfilename; in work() local
130 psong = nullptr; in work()
150 psong = audacious_remote_get_playlist_title(session, tmp.playlist_position); in work()
151 if (psong) { in work()
152 tmp.title = psong; in work()
153 g_free(psong); in work()

12