[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] music.queue not working on Raspberry Pi
- To: pygame-users@xxxxxxxx
- Subject: [pygame] music.queue not working on Raspberry Pi
- From: Deven Hickingbotham <devenh@xxxxxxxxxxx>
- Date: Wed, 21 Sep 2016 08:29:02 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Wed, 21 Sep 2016 11:29:04 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacbell.net; s=s2048; t=1474471740; bh=XgseNTqhnoZ13Mm0CweN0zdMG99vBHZ/OXzJDRe1In8=; h=To:From:Subject:Date:From:Subject; b=ELFTmkLYLwPMQA0MHNxNkO8wmj0iw2fgbk7WNyRJR4o+nwRh2O9c7nBYpMo4QvQmM+ltBFV/iQMydEunKPBr4koAGXGRwp08l+wd6GeAp6aUvs2vjf1ZyMgRlA4ZObXWcdVzpAbppE/8YtYuZrxaMOEgwSC0S6jQAhQr/hui/7LnxhoGcdTwIEtaA1jhuTBiVsdU42A5eUuDjKquBxwprXQBougoo8fMffr3xrdF5+c0iftV4Sm3UR/E5RxeM4DXNIFmnydY9TL6CwYSAmRdr2+ntU/t2t/qRbE2WedXIwUrqW6FIKLYNJ5vtX65QiTOmaLIXf5n1pCOLiJDGRrI3A==
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
I'm sure I'm missing something simple, but I just can't get the queue
function to work. I'm using Python 3.4.2 under the latest Jessie release
on a Pi 3. I have tested with mp3, wav, and ogg files.
PATHAUDIO = '/home/pi/Music/'
ext = '.mp3'
pygame.mixer.init()
pygame.mixer.music.load(PATHAUDIO + 'first' + ext)
pygame.mixer.music.play(2)
pygame.mixer.music.queue(PATHAUDIO + 'second' + ext)
#pygame.mixer.music.play()
print('done')
The first audio file gets played three times, but the second one is
never played.
Pygame v1.9.2a0, SDL 1.2.15